我使用flux todomvc示例作为出发点在create-react-app应用程序之上实现了flux:
- AppView 渲染 create-react-app App 组件
- AppContainer 导出 AppView(就像 todomvc 一样)
- index.js 渲染 AppContainer(todomvc 使用 root.js)
我想知道这是否是这样做的方法,或者直接在 AppView 中重写 App 功能是否更好(换句话说,完全摆脱 App 组件)。
我使用flux todomvc示例作为出发点在create-react-app应用程序之上实现了flux:
我想知道这是否是这样做的方法,或者直接在 AppView 中重写 App 功能是否更好(换句话说,完全摆脱 App 组件)。