摘要: 大致情况: - 1. 要有个状态:state - 2. 要有个(状态)容器:store - 3. 在状态改变的流程中,状态是可预测的,即: - 3.1 何时触发状态进行改变? dispatch,触发 state 的改变 - 3.2 触发了什么改变? action,描述 state 该做什么修改 - 阅读全文
posted @ 2019-07-09 21:27 慢慢变菜 阅读(315) 评论(0) 推荐(0) 编辑
摘要: react项目,执行npm run eject生成配置文件报错: Remove untracked files, stash or commit any changes, and try again. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR 阅读全文
posted @ 2019-07-09 21:04 慢慢变菜 阅读(563) 评论(0) 推荐(0) 编辑