Introduction
Does anyone feel reluctant when you want to implement Redux in your react app? I always feel implementing Redux at the begi...
For further actions, you may consider blocking this person and/or reporting abuse
Good tutorial Redux Toolkit makes React development so much more calm than how it used to be before this.
Thank you for the feedback!
great explanation
Great, can you please do it on a CRUD operation.
I did in my example repository. You can take a look
Great! Perfect algoritm and explanation. I include Toolkit conclusion in my notice. Thank you, Raynaldo.
This is the best redux explanation I've ever seen.
thank you Raynaldo
I think you want
export const { addTodo } = todoSlice.action;
to be
actions
?because redux requiring pages and pages of intricate boilerplate wasn't confusing enough so there's some autogenerated magic in there too. or maybe its just JS lib churn
Hi! Thank you so much for leaving this comment. Good catch! I just updated the code.
Using components is a great way to structure web applications because they make it easier to reuse code. However, as the number of components grows, managing the communication and data flow between them becomes complex.
Redux and Context API are great solutions for managing data flow through Reactβs nested components. They both follow a similar philosophy: the state is taken outside the component tree and consumed as needed. In the case of Redux, external dependencies need to be installed, configured and maintained. Context API is integrated into the React core and requires minimal configuration.
If you are interested in learning a bit more about this, I'd recommend this article by Andy Fernandez, which dives into the details on Redux: scalablepath.com/react/context-api...
until I read this blog I really don't understand what is toolkit and how to apply it
thanks a lot
preloadedState overwrites initialState in your immer slices, so initialState should be empty - you can't remove as its a required field in the slice.
**
This is really helpfull
**
I spent days looking for a concise, easy to understand explaination about redux toolkit and this is the only one that helped me finally get it