您正在为 `Route` 上的 `path` 属性手动调用 React.PropTypes 验证函数

You are manually calling a React.PropTypes validation function for the `path` prop on `Route`

当我在 reactjs 中使用路由器时收到此警告。

警告:您正在为 Route 上的 path 属性手动调用 React.PropTypes 验证函数。这已被弃用,不会在下一个主要版本的生产中使用。

ReactDOM.render(
    <Router history={hashHistory}>
        <Route path="/" component={Routing}></Route>
    </Router>, 
    document.getElementById('layout')
);

这似乎是旧版本 react-router 在使用 React@^15.3.0 时出现的问题。 解决此问题的唯一方法是更新 react-router 或降级 react

进一步阅读: