A React-Static plugin that adds @reach/router support for React Static
npm install react-static-plugin-reach-routerA React-Static plugin that adds support for @reach/router
- Install this plugin and peer dependencies:
``bash`
$ yarn add react-static-plugin-reach-router @reach/router
- Add the plugin to your static.config.js:
`javascript`
export default {
plugins: ['react-static-plugin-reach-router'],
}
- Follow the Dynamic Routes with Reach Router guide to configure your routes for both dynamic and static rendering
- (Optional) Configure the plugin:
`javascriptRouter
export default {
plugins: [
[
'react-static-plugin-reach-router',
{
RouterProps: {
// These props will be passed to the underlying component``
},
},
],
],
}