State Management · Middle · Question 19 of 75
Should form input state (each keystroke) go into Redux?
- ✓Correct answer: Usually not: keep it local and dispatch the result on submit
- 2Yes, all state must be in the store to be predictable
- 3Yes, otherwise the form won't work with DevTools
Explanation
The Redux style guide recommends deciding per piece of state. Ephemeral UI state (typing, hover, an open dropdown) is local; the store holds data shared across the app or that must survive navigation.