react-static-plugin-reach-router
v7.6.2
Published
A React-Static plugin that adds @reach/router support for React Static
Downloads
26,312
Readme
react-static-plugin-reach-router
A React-Static plugin that adds support for @reach/router
Installation
- Install this plugin and peer dependencies:
$ yarn add react-static-plugin-reach-router @reach/router
- Add the plugin to your
static.config.js
:
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:
export default {
plugins: [
[
'react-static-plugin-reach-router',
{
RouterProps: {
// These props will be passed to the underlying `Router` component
},
},
],
],
}