react-static-pro-plugin-reach-router
v1.12.0
Published
A react static pro plugin that adds @reach/router
Downloads
35
Readme
react-static-pro-plugin-reach-router
A react static pro plugin that adds @reach/router
Installation
- Install this plugin and peer dependencies:
$ yarn add react-static-pro-plugin-reach-router @reach/router
- Add the plugin to your
static.config.js
:
export default {
plugins: ['react-static-pro-plugin-reach-router'],
}
- (Optional) Configure the plugin:
export default {
plugins: [
[
'react-static-pro-plugin-reach-router',
{
RouterProps: {
// These props will be passed to the underlying `Router` component
},
},
],
],
}