Skip to main content
Version: Next

Interface: Page

A page in the app, normally a React component rendered for a Route.

Create one with the page constructor.

Extends

  • BasePart<"page">

Properties

authRequired?

optional authRequired?: boolean

If true, only authenticated users can access this page. Unauthenticated visitors are redirected to Auth.onAuthFailedRedirectTo.

Cannot be combined with Route.prerender.

Default

false

component

component: Reference<AnyFunction>

React component rendered for this page.


kind

kind: "page"

The internal Wasp type of this part. Used by the compiler. You should not set this field directly, instead use the dedicated constructors for each part type.

Inherited from

BasePart.kind