【Redux】ReactやるにもAngularやるにもとにかくRedux

【react-router-redux】これが出てきたら: should not have a “path” prop in IndexRoute

【react-router-redux】これが出てきたら:<IndexRoute> should not have a “path” prop in IndexRoute

should not have a “path” prop in IndexRoute
indexRoute はpashプロパティを持つべきではありません。

fix

  Router history={history}>
   <Route path="/" component={App}>
      <IndexRoute path="index" component={Index} />//no!!
      <Route path="input" component={ConnectedInput} />
      <Route path="counter" component={ConnectedCounter} />
   </Route>
</Router>
  

<Router history={history}>
   <Route path="/" component={App}>
      <IndexRoute component={Index} />//fix
      <Route path="input" component={ConnectedInput} />
      <Route path="counter" component={ConnectedCounter} />
   </Route>
</Router>

ではーーー

(Visited 1 times, 1 visits today)