because if I have the opacity in the state, I can just pass the opacity to the components that need that opacity, but your way I will have to select manually all of those 5 components
react knows how to minimize dom manipulations which are expensive. you can do it manually, but you'll mess up eventually
Обсуждают сегодня