, should i use local component state to keep track of form onchange ? or is there other way?
It really depends on what you want to achieve: if you want other components to be updated while the user's typing then update redux state, if you're only interested in updating other components when the user submits then just keep it in a local state
i want to update while typing..i think i have to dispatch actions on every key stroke
in the whole app? Then you better update redux store
Обсуждают сегодня