Getting this warning when i use router in reactjs.
Warning: You are manually calling a React.PropTypes
validation function for the path
prop on Route
. This is deprecated and will not work in production with the next major version.
ReactDOM.render(
<Router history={hashHistory}>
<Route path="/" component={Routing}></Route>
</Router>,
document.getElementById('layout')
);
This seems to be a problem with an old version of react-router
while working with React@^15.3.0
.
Only way to solve this is to update react-router
or downgrade react
.
Further reading: