7.6.2 • Published 3 years ago
react-static-plugin-react-router v7.6.2
react-static-plugin-react-router
A React-Static plugin that adds support for react-router
Installation
- Install this plugin and peer dependencies:
$ yarn add react-static-plugin-react-router react-router-dom react-router
Make sure that you have exactly the same version for react-router-dom
as react-router
, per this blog post.
- Add the plugin to your
static.config.js
:
export default {
plugins: ['react-static-plugin-react-router'],
}
Follow the Dynamic Routes with React Router guide to configure your routes for both dynamic and static rendering
(Optional) Configure the plugin:
export default {
plugins: [
[
'react-static-plugin-react-router',
{
RouterProps: {
// These props will be passed to the underlying `Router` component
},
},
],
],
}
7.6.2
3 years ago
7.6.1
3 years ago
7.5.3
3 years ago
7.5.1
3 years ago
7.5.0
3 years ago
7.4.2
4 years ago
7.4.1
4 years ago
7.4.0
4 years ago
7.3.0
4 years ago
7.2.3
5 years ago
7.2.2
5 years ago
7.2.0
5 years ago
7.0.10
5 years ago
7.0.8
5 years ago
7.0.0
5 years ago
7.0.0-beta.0
5 years ago
6.3.4
5 years ago
6.3.1
5 years ago
6.3.0
5 years ago
6.1.1
5 years ago