React Routeways - API Reference • Docs
React Routeways - API Reference / RouteProps
Interface: RouteProps
Extends
Omit<OriginalRouteProps,"path">
Properties
Component?
optionalComponent:null|ComponentType<object>
Inherited from
Omit.Component
Defined in
node_modules/react-router/dist/lib/components.d.ts:71
ErrorBoundary?
optionalErrorBoundary:null|ComponentType<object>
Inherited from
Omit.ErrorBoundary
Defined in
node_modules/react-router/dist/lib/components.d.ts:73
HydrateFallback?
optionalHydrateFallback:null|ComponentType<object>
Inherited from
Omit.HydrateFallback
Defined in
node_modules/react-router/dist/lib/components.d.ts:72
action?
optionalaction:boolean|ActionFunction<any>
Inherited from
Omit.action
Defined in
node_modules/react-router/dist/lib/components.d.ts:62
caseSensitive?
optionalcaseSensitive:boolean
Inherited from
Omit.caseSensitive
Defined in
node_modules/react-router/dist/lib/components.d.ts:57
catchAll?
optionalcatchAll:boolean
Enables the “catchall” splat for the route. This means that a /* string
will be appended to the end othe the path when the template is generated
from the Routeway route.
Default
false
Defined in
src/lib/components/Route.component.tsx:15
children?
optionalchildren:ReactNode|ReactElement<RouteProps, string | JSXElementConstructor<any>> |ReactElement<RouteProps, string | JSXElementConstructor<any>>[]
Optional nested react-routeways Route component(s). It also supports
React Fragment components(s) as react-router-dom’s Route does.
Overrides
Omit.children
Defined in
src/lib/components/Route.component.tsx:20
element?
optionalelement:ReactNode
Inherited from
Omit.element
Defined in
node_modules/react-router/dist/lib/components.d.ts:68
errorElement?
optionalerrorElement:ReactNode
Inherited from
Omit.errorElement
Defined in
node_modules/react-router/dist/lib/components.d.ts:70
handle?
optionalhandle:any
Inherited from
Omit.handle
Defined in
node_modules/react-router/dist/lib/components.d.ts:65
hasErrorBoundary?
optionalhasErrorBoundary:boolean
Inherited from
Omit.hasErrorBoundary
Defined in
node_modules/react-router/dist/lib/components.d.ts:63
hydrateFallbackElement?
optionalhydrateFallbackElement:ReactNode
Inherited from
Omit.hydrateFallbackElement
Defined in
node_modules/react-router/dist/lib/components.d.ts:69
id?
optionalid:string
Inherited from
Omit.id
Defined in
node_modules/react-router/dist/lib/components.d.ts:59
index?
optionalindex:boolean
Inherited from
Omit.index
Defined in
node_modules/react-router/dist/lib/components.d.ts:66
lazy?
optionallazy:LazyRouteFunction<NonIndexRouteObject> |LazyRouteFunction<IndexRouteObject>
Inherited from
Omit.lazy
Defined in
node_modules/react-router/dist/lib/components.d.ts:60
loader?
optionalloader:boolean|LoaderFunction<any>
Inherited from
Omit.loader
Defined in
node_modules/react-router/dist/lib/components.d.ts:61
route?
optionalroute:Routeway|"*"
The Routeway route to take the template to set to the path prop
of react-router-dom’s Route component.
The splat * character is also a supported value. To append a splat *
to a route you can set the catchAll prop to true.
Defined in
src/lib/components/Route.component.tsx:31
shouldRevalidate?
optionalshouldRevalidate:ShouldRevalidateFunction
Inherited from
Omit.shouldRevalidate
Defined in
node_modules/react-router/dist/lib/components.d.ts:64