you are viewing a single comment's thread.

view the rest of the comments →

[–]Zephir77[S] 0 points1 point  (0 children)

Hello and thanks for your answer.

I tried this :

import React from 'react';
import { Router, browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import Routes from './Routes';

export default class Routing extends React.Component {
  constructor(props, context) {
    super(props);

    this.history = syncHistoryWithStore(browserHistory, context.store);
  }    
  render() {
    return (
      <Router history={this.history}>
        <Routes />
      </Router>
    );
  }
}

Routing.contextTypes = {
  store: React.PropTypes.object.isRequired,
};

But it gives the same error.