3 ms·
A huge, global, shared state makes it much harder to have an arbitrary number of a component, compared to each instance of the component holding its own state.
by maaaats 10y ago
A huge, global, shared state makes it much harder to have an arbitrary number of a component, compared to each instance of the component holding its own state.
It's also a lot of boilerplate when you just want to add a simple toggle to some component.