Nice explanation! One thing that I always wondered is how does redux connect with react 'reactivity system'. I never understood how changes in the redux store propagate to the react components.
An experienced software developer with a strong background in developing award-winning web and mobile applications for diverse clients with 6+ years of industry experience.
Thanks Hammed! But I still don't know how it hooks with React components exactly. For Vue I can imagine how it would work, but not for React... Do you have any idea of which API Redux uses for this?
An experienced software developer with a strong background in developing award-winning web and mobile applications for diverse clients with 6+ years of industry experience.
An experienced software developer with a strong background in developing award-winning web and mobile applications for diverse clients with 6+ years of industry experience.
Nice explanation! One thing that I always wondered is how does redux connect with react 'reactivity system'. I never understood how changes in the redux store propagate to the react components.
It is using publish and subscribe pattern under the hood, look at the file responsible for it at github.com/reduxjs/redux/blob/mast...
Thanks Hammed! But I still don't know how it hooks with React components exactly. For Vue I can imagine how it would work, but not for React... Do you have any idea of which API Redux uses for this?
Oh, they use ContextAPI. Never mind, I think I got it now!
github.com/reduxjs/react-redux/blo...
Definitely, the React bindings uses Context API under the hood as seen here: github.com/reduxjs/react-redux/blo...
Lol, I have replied before I saw your comment 😂