There are many articles written about React performance optimizations. In general, if some state update is slow, you need to: This last step is annoying, especially for components in between, and ideally a compiler would do it for you. In the future, it might.
Full article