You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tough question. I wouldn't go so far as to put all state into Redux store—just what feels natural and simplifies the surrounding code, predictability and testing.
To be honest I have no idea about the future of managing state. I don't think setState() is the right API but I'm not sure about alternatives either. I think we might have gone too far into the “externalize the state” direction thus losing the colocation. Maybe React can provide a better state API that would yield the same benefits as Redux gives you, but with colocation.
I'm really interested in “fractal architectures” like Elm Architecture and Cycle's Nested Dialogues as Andre Staltz describes here. I wrote React Elmish Example to try to better understand Elm architecture myself.
Would you do it? And if so, how would you shape your state to separate UI state from model state?
The text was updated successfully, but these errors were encountered: