ReactRouter master READ ONLY 0
  • explorer
  • search
a [App]
a CG.ReactRouter
a README.md
a app.ts
a [Test]
a test
  • README.md

ReactRouter

This project wraps React Router and provides util classes for easy intergration.

Here is the description from official ReactRouter

React Router is a collection of navigational components that compose declaratively with your application. Whether you want to have bookmarkable URLs for your web app or a composable way to navigate in React Native, React Router works wherever React is rendering--so take your pick!

Getting Started

CG.React.renderComponent(CG.ReactRouter.BrowserRouter, {
    routes: [
        {
            component: SomeCompOfYours,
            path: '/',
            exact: true,
        },
        {
            component: SomeCompOfYours1,
            path: '/path1'
        },
        {
            component: SomeCompOfYours2,
            path: '/path2'
        },
        {
            component: SomeCompOfYours,
            path: '/*'
        }
    ]
})

References

READ ONLY
  • problem
  • console
No problems have been detected so far.
Ln 1, Col 1, Sel 0
Markdown