react-static-plugin-react-location
v7.6.2
Published
A React-Static plugin that adds react-location support for React Static
Downloads
27
Readme
react-static-plugin-react-location
A React-Static plugin that adds support for react-location
Installation
- Install this plugin and peer dependencies:
$ yarn add react-static-plugin-react-location react-location
- Add the plugin to your
static.config.js
:
export default {
plugins: ['react-static-plugin-react-location'],
}
Follow the Dynamic Routes with React Location guide to configure your routes for both dynamic and static rendering
(Optional) Configure the plugin:
export default {
plugins: [
[
'react-static-plugin-react-location',
{
LocationProviderProps: {
// These props will be passed to the underlying `LocationProviderProps` component
},
},
],
],
}