Skip to content

Latest commit

 

History

History
 
 

react-static-plugin-reach-router

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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'],
}
export default {
  plugins: [
    [
      'react-static-plugin-reach-router',
      {
        RouterProps: {
          // These props will be passed to the underlying `Router` component
        },
      },
    ],
  ],
}