News for hackers. Stuff that matters.
Re:Angular 9.0 by lukevp on Friday February 07, 2020 @08:30AM (#22265734)
I think a blend of both is the best approach for most apps. Redux for global state, api interactions, etc. so that you get the power of middleware like thunk and saga and get great debugging support for overall app state, then anything local to a page or component (like you said, for form data) you use a react context and useContext it in child components to hook up events and manage page level state using useReducer or useState within your page component. This model has been very successful for us and helps partition state in an easy to understand way.

There are no comments on this comment yet.