react-router#browserHistory JavaScript Examples

The following examples show how to use react-router#browserHistory. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: store.test.js    From QiskitFlow with Apache License 2.0 6 votes vote down vote up
describe('configureStore', () => {
  let store;

  beforeAll(() => {
    store = configureStore({}, browserHistory);
  });

  describe('injectedReducers', () => {
    it('should contain an object for reducers', () => {
      expect(typeof store.injectedReducers).toBe('object');
    });
  });

  describe('injectedSagas', () => {
    it('should contain an object for sagas', () => {
      expect(typeof store.injectedSagas).toBe('object');
    });
  });

  describe('runSaga', () => {
    it('should contain a hook for `sagaMiddleware.run`', () => {
      expect(typeof store.runSaga).toEqual('function');
    });
  });
});
Example #2
Source File: index.jsx    From Spoke with MIT License 5 votes vote down vote up
store = new Store(browserHistory, window.INITIAL_STATE)
Example #3
Source File: index.jsx    From Spoke with MIT License 5 votes vote down vote up
history = syncHistoryWithStore(browserHistory, store.data)
Example #4
Source File: history.js    From doraemon with GNU General Public License v3.0 5 votes vote down vote up
history = process.env.NODE_ENV === 'production' ? browserHistory : hashHistory
Example #5
Source File: index.js    From Learning-Redux with MIT License 5 votes vote down vote up
history = syncHistoryWithStore(browserHistory, store)
Example #6
Source File: store.js    From Learning-Redux with MIT License 5 votes vote down vote up
history = syncHistoryWithStore(browserHistory, store)
Example #7
Source File: store.js    From Learning-Redux with MIT License 5 votes vote down vote up
history = syncHistoryWithStore(browserHistory, store)
Example #8
Source File: index.js    From the-eye-knows-the-garbage with MIT License 5 votes vote down vote up
ReactDOM.render((
  <Router history={browserHistory}>
    <Route path="/" component={App} />
  </Router>
), document.getElementById('root'));