These days increasingly more functionality is being moved from backend to frontend. React, Angular and Vue have massively grown in popularity. With them — so have Frontend state management solutions like Flux, Redux, Recoil, etc.

Using state management solutions is easy. However, architecting a good state-structure is not as trivial. Especially because changing state structure early in project development is easy, but later — gets a lot trickier.

I’ve found the entity state design pattern to be highly effective for projects of all sizes. Here’s the basic…