4 ms·
I use container components at the appropriate levels in the hierarchy in a similar way to Flux stores, managing their state using React's own state management,
by steve_taylor 10y ago
I use container components at the appropriate levels in the hierarchy in a similar way to Flux stores, managing their state using React's own state management, exposing the state via context (to avoid excessive property passing). I implement actions as functions in the container components which I also expose via context. So far, I've found it to be simple and effective. I use page.js for routing and superagent for web service calls.