react-static-plugin-reach-router

A React-Static plugin that adds @reach/router support for React Static

Usage no npm install needed!

<script type="module">
  import reactStaticPluginReachRouter from 'https://cdn.skypack.dev/react-static-plugin-reach-router';
</script>

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