Have ideas to improve npm?Join in the discussion! »

    dora-plugin-browser-history

    0.2.0 • Public • Published

    dora-plugin-browser-history

    dora plugin for react-router browser history(#browserhistory)

    NPM version Build Status Coverage Status

    Feature

    • support react-router browserHistory

    Install

    $ npm install dora-plugin-browser-history --save-dev

    Usage

    import { Router, Route, browserHistory } from 'react-router';
    import Home from './Home';
    import Setting from './Setting';
    import Download from './Download';
     
    ReactDom.render((
      <Router history={browserHistory}>
        <Redirect from="/" to="/home" />
        <Route path="/" component={App}>
          <Route path="home" component={Home} />
          <Route path="setting" component={Setting}/>
          <Route path="download" component={Download} />
        </Route>
      </Router>
    ), document.getElementById('react-content'));
    $ dora --plugins browser-history

    Query

    Path of the index file

    $ dora --plugins browser-history?index=/example/entry.html

    Keywords

    none

    Install

    npm i dora-plugin-browser-history

    DownloadsWeekly Downloads

    37

    Version

    0.2.0

    License

    MIT

    Last publish

    Collaborators

    • avatar