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.
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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.
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.