Redux 的簡單使用

Redux 的簡單使用 目錄: 1、安裝 2、創建Store 3、創建Reducer 4、使用store在組件中調用redux state中的數據 5、向store傳值 安裝 對於IOS: yarn add redux 對於Windows: npm install redux 創建Store 在src目錄下新建store文件夾,並且創建reducer.js和index.js(index.js負責創
相關文章
相關標籤/搜索