React.createClass({})
c class Main extend React.Components {}
static contextTypes = {
router: PropTypes.object.isRequired
};
this.context.transitionTo('/')
Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op.
static contextTypes = {
router: Router.PropTypes.object.isRequired
}
this.contex.router.transitionTo("/");
loaders: [
{ test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel-loader?stage=0' },
]