Home Reference Source

Typedef

Static Public Summary
public

A Route is a place where content/resources are located at and defines which component to load depending on the URL path.

Static Public

public Route: Object source

A Route is a place where content/resources are located at and defines which component to load depending on the URL path.

Children routes are optional and recursive.

Properties:

NameTypeAttributeDescription
name String

Short descriptive name of the section to load

to String

The path to the page it will go to

component react~Component

The component it will load below the Navigation

children Array<Route>
  • optional

All nested routes

Example:

{
  name: 'Some name',
  to: 'path/to/page',
  component: SomeComponent,
  children: [{
    name: 'Nested component',
    to: 'path/to/nested',
    component: NestedComponent
  }]
}