Controller for React Router Dom to create easy nested routes in different apps
npm
npm install react-router-dom-handler
yarn
yarn add react-router-dom-handler
Read the blog about how to use it here
Prop | Type | Default Value | Options | Description |
---|---|---|---|---|
routes | json list | [] | The routes that should be rendered as Route component or as Redirect component inside a Switch component. |
Any other prop passed to the
RouterDomHandler
component will be Switch props.