angular.js - How to implement routing in react, analogous to the method of implementing routing control in angularjs
某草草
某草草 2017-05-15 16:54:18
0
2
533

I am getting started with react, and I have encountered the problem of routing control in react, and my thinking is limited to angular

In angularjs, the application url is index.html#/xxx/xxx. We use $routeParams.xxx to get the parameters in the url. According to different parameters, go to the database to get the corresponding information

So in react, how do we set parameters in the url, and how do we get the parameters in the url?

某草草
某草草

reply all(2)
滿天的星座

Remember that React is just the View layer, while Angular is a complete Framework!

The specific solution can be directly using react-router

Peter_Zhu

React-router

this.props.query.xxx

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template