摘要:
1.安装redux 2.创建store文件夹,创建store.js 3.创建reducer.js 4.在store.js中引入reducer,并在createStore方法里传入reducer 5.在App.js中,引入store,使用store.getState()方法,获取state 阅读全文
posted @ 2019-07-22 22:46 猫头唔食鱼 阅读(7856) 评论(0) 推荐(1)
他山之石,可以攻玉。
posted @ 2019-07-22 22:46 猫头唔食鱼 阅读(7856) 评论(0) 推荐(1)
posted @ 2019-07-22 00:47 猫头唔食鱼 阅读(2136) 评论(0) 推荐(0)