@jiesu12/history-dispatcher
v1.3.0
Published
Use this in a Frame to fire a load event when URL is changed by React Router.
Downloads
6
Readme
HistoryDispatcher
Use this in a Frame to fire a load event when URL is changed by React Router.
Example:
ReactDOM.render(
<Provider store={configureStore()}>
<Router>
<Switch>
<Route path='/home' component={Home} />
<Route path='/help' component={Help} />
</Switch>
<HistoryDispatcher />
</Router>
</Provider>,
document.getElementById('root'),
)
NPM Release
- run
npm login
if not logged in yet. - Update version in
package.json
- run
npm run build
- run
npm publish --access public