W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗值獎勵
Redux 源碼 中同時包含一些示例。
復(fù)制代碼時注意
如果你把 Redux 示例代碼復(fù)制到其它目錄,可以刪除位于
webpack.config.js
文件尾部 “You can safely delete these lines in your project.” 注釋后的代碼。
運行 Counter 示例:
git clone https://github.com/rackt/redux.git
cd redux/examples/counter
npm install
npm start
open http://localhost:3000/
這個示例包含:
運行 TodoMVC 示例:
git clone https://github.com/rackt/redux.git
cd redux/examples/todomvc
npm install
npm start
open http://localhost:3000/
這個示例包含:
運行 todos-with-undo 示例:
git clone https://github.com/rackt/redux.git
cd redux/examples/todos-with-undo
npm install
npm start
open http://localhost:3000/
這個示例包含:
運行 Async 示例:
git clone https://github.com/rackt/redux.git
cd redux/examples/async
npm install
npm start
open http://localhost:3000/
這個示例包含:
運行 Universal 示例:
git clone https://github.com/rackt/redux.git
cd redux/examples/universal
npm install
npm start
open http://localhost:3000/
這個示例包含:
運行 Real World 示例:
git clone https://github.com/rackt/redux.git
cd redux/examples/real-world
npm install
npm start
open http://localhost:3000/
這個示例包含:
參考 Awesome Redux 獲取更多示例。
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: