Code for my Redux Workshop
Open this CodeSandbox to learn and play with the basic concepts!
redux-thunk
and not redux-saga
? Because of this!$ npm i # download dependencies
$ npm start # enjoy!
src/store.js
and only fix the TODO for now...src/components/App.js
.src/actions/types.js
and only fix the TODO for now...src/actions/index.js
and only fix the TODO for now...src/reducers/posts.js
.redux-logger
, wouldn't it?src/actions/types.js
and fix the FIXME!src/actions/index.js
and fix the FIXME!src/reducers/comments.js
.redux-thunk
, and to src/actions/index.js
and have a look!fetchComments
??? (hint: 2 steps)