Skip to content

Error Files ( error.x.py )

Sarthak Ghoshal edited this page May 23, 2025 · 1 revision

Error Files ( +error.x.py )

use this file to edit error pages

Syntax:

from reactpy import component, html

errorCode = 304


@component
def error():
  return html.h1(errorCode)
  • errorCode is the error code that it displays on
  • error is the function that is rendered
  • THEY MUST BE CALLED THIS

Clone this wiki locally