@jiesu12/history-dispatcher
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

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

/@jiesu12/history-dispatcher/

    Package Sidebar

    Install

    npm i @jiesu12/history-dispatcher

    Weekly Downloads

    0

    Version

    1.3.0

    License

    ISC

    Unpacked Size

    3.53 kB

    Total Files

    7

    Last publish

    Collaborators

    • jiesu12