Catching up with Redux with hooks & RTK
To start, check out the branch you wanna see and:
npm i
npm run dev
- Ignore all my ESLint horrors :'(
Branches contain new fun things based on the typical Counter example (increment, decrement, reset):
main
: Plain 'ol Redux, featuring components connecting to store, mapStateToProps, mapDispatchToPropsnow_with_hooks
: Upgrade! Use new hooks to dispatch, access the store, creating your reducers/actions via slicetyped_hooks
: Added TypeScript, typed useSelector and some small stuffrtk_query
: Use RTK Query to call the Pokemon API using our Counter state
⚠ If switching to a new branch it won't build/gives you an error about not finding a file, delete your dist
and .cache
directories.