I'm relatively new to react.js & react-native and was wondering if there is a react.js library that works the same way as react-native's 'react-native-router-flux'.
For example, the following code block which I have on my signup page [React-Native]:
toLogInPage() {
Actions.login()
}
works very easily with the code from my routes page [React-Native]:
<Router>
<Scene key="login" component={Login} title="Login" initial={true} />
</Router>
Does react.js have something similar? I see a 'react-router-flux' library with an {Action} component. Does this do the same thing?
You just haven't asked the internet, But there you go: https://reacttraining.com/react-router
have a look at react-router-dom
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.