DEV Community

Discussion on: Do you need a State Management Library?

Collapse
 
raibtoffoletto profile image
Raí B. Toffoletto

O use a mix of local state, hooks/context and redux at work. We apply them where it makes sense to get the most of them. A complex hook may be better implement as a redux slice, in the same way a slice that doesn't implement async logic and has a fairly simple state is better off as a hook. The key is find the balance where a global state is needed and where you should keep the state local to the component. All depending on the size of tge application. 😉