The route
config determines the page's routing.
Instead of a Route String, you can also define a Route Function:
TypeScript
Don't omit ReturnType<RouteSync>
otherwise TypeScript won't strictly check the return type.
See API > pageContext
> Typescript for more information on how to extend pageContext
with your own extra properties.
See also: