这些都很难一概而论,引用 react 核心开发者 dan 的话来说 ``` Keep the local state isolated. Think about which state is local to a particular UI representation — and don ’ t hoist that state higher than necessary. ```
lamada
2019 年 7 月 4 日
状态与渲染分离
powerN
2019 年 7 月 4 日
index
wu67
2019 年 7 月 4 日
谁的数据谁请求, 共用的就 vuex
qiushenqinghua
2019 年 7 月 4 日
side 只获取自己的数据就在组件本身里放数据,search 搜索结果跨组件给 list。 用 vuex 统一管理更直接一点,不会错,后面加什么都比较统一。