One of the biggest complaints people tend to have about Redux is the amount of boilerplate code you end up writing to use it. It doesn't have to be that way!
Redux actions will simplify the code for our action creators and even give us a new way to create our reducers.
By using redux-actions, our application will use Flux Standard Actions, keeping the way we manage our state more consistent.
This small library only exposes a few functions for its API, so it won't take long to learn, but it will make a huge difference in how we write action creators and reducers for redux.
Great course. Where can I access the code please? There was a tab for that but after I signed up it disappeared. Pretty frustrating that!
Steve, Here’s a link for you: https://github.com/avanslaars/redux-actions-course/
Each course with code should have a code tab that takes you to the appropriate branch. Hope this helps!
Thanks Andy! Great course BTW.
Thanks! this course is awesome! I'm trying to implement this with typescript, do you know about a good resource?
I don't have anything specific to
redux-actions with TypeScript. You might find the Use TypeScript to develop React Applications course helpful for React and TypeScript. Also, there are types for
redux-actions here: https://www.npmjs.com/package/@types/redux-actions. Hope this helps.