An Example usage react-router-ext.
const routeList = [
Â
 {
   path: '/',
   component: Home,
   exact: true,
 },
Â
Â
 {
   path: '/',
   component: Home,
   exact: true,
   wrapper: AuthComponent,
 },
Â
 {
   path: '/',
   component: Home,
   exact: true,
   wrapper: AuthComponent,
   routes: [
     {
       path: '/article',
       component: Article,
       exact: true,
       routes: [
         {
           path: '/categories',
           component: Category,
           exact: true,
         },
       ]
     },
   ]
 }
Â
]
Â
ReactDOM.render(<MainRoute routes={routeList}/>, node)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4