2 ms·A better solution would be to use React Redux that does this and many other optimizations for you :-)by danabramov 11y agoA better solution would be to use React Redux that does this and many other optimizations for you :-)