React’s context API is awesome. As someone that looked at Redux as a junior developer and instantly felt defeated, learning about context was a relief for Lee. He used it in his apps, quickly forgot about Redux, and never looked back. That is, until he heard about the supposed performance problems with the Context API. Now, the big names in the React community will tell you not to worry about performance unless you start seeing issues. And yet, he kept hearing about context problems from other developers. One fellow even mentioned his boss banning the use of Context on their project. This post dives into those problems and what to look out for.
For quite some time, Redux has been React developers go-to library for managing their app’s global state. It’s a great tool – but do you really need it?