DEV Community

Discussion on: Use Hooks + Context, not React + Redux

Collapse
 
mati365 profile image
Mateusz Bagiński

It is very bad solution. Please check performance on medium/large apps - any state update will generate hundreds of children components rerenders(even if nested state variable used by them is not affected). Its much better to implement tiny selector/subscribtion rather than this.

Collapse
 
gauravsoti1 profile image
Gaurav Sobti

I agree. Also, Context api is best used for components which don't change much. I made a mistake of using context api and hooks. I took a huge performance hit.