由于 Remax 把页面组件统一成了 App 的子组件渲染,所以你可以很方便的使用 React 的 Context 在页面之间共享状态。

    具体的例子可以参考:https://github.com/remaxjs/examples/tree/master/alipay

    我们也推荐使用 unstated、constate 这样的超轻量库。

    当然,如果你希望使用 Redux/Dva,我们也提供了 remax-redux 和 remax-dva.