DEV Community

loading...

I'm Feeling confused while learning Redux with react, any tips?

AbdElKhalekSeliM
・1 min read

Discussion (7)

Collapse
valeriavg profile image
Valeria

Redux can be used without React and I suggest you to try it separately. Create the simplest html page, import redux with a script tag and play with it. Think of redux as a big weird object store that can only be charged by calling action functions, not a direct assignment. This allows you to record a history of changes that can be used to rewind and forward state in time (aka time travel). Try implementing a form with undo and redo functionality. Once you've grasped the concept itself it should be easy to introduce React-related Redux hooks and other utilities. Good luck!

Collapse
abdelkhalekselim profile image
AbdElKhalekSeliM Author

Thanks, I think this will help

Collapse
ishakmohmed profile image
Mohmed Ishak

Learn React Context API first.

Collapse
abdelkhalekselim profile image
AbdElKhalekSeliM Author

Yeah I did, but after trying to combine Redux with react felt stuck

Collapse
ishakmohmed profile image
Mohmed Ishak

Yeah, that's normal, don't worry about it.

Collapse
clivend profile image
clivend

redux has probably one of the best documentations out there

Collapse
abdelkhalekselim profile image
AbdElKhalekSeliM Author

Okay I'll try it, thanks