【问题标题】:React.js library that does same thing as react-native-router-flux for React-Native?React.js 库与 React-Native 的 react-native-router-flux 做同样的事情?
【发布时间】:2019-10-29 16:40:43
【问题描述】:

我对 react.js 和 react-native 比较陌生,想知道是否有一个 react.js 库与 react-native 的“react-native-router-flux”工作方式相同。

例如,我的注册页面 [React-Native] 上的以下代码块:

  toLogInPage() {
     Actions.login()
  }

使用我的路线页面 [React-Native] 中的代码非常容易工作:

<Router>
    <Scene key="login" component={Login} title="Login"  initial={true} />
</Router>

react.js 有类似的东西吗?我看到一个带有 {Action} 组件的“react-router-flux”库。这样做是不是同样的事情?

【问题讨论】:

    标签: javascript reactjs react-native


    【解决方案1】:

    你只是没有问过互联网,但是你去:https://reacttraining.com/react-router

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多