Using an internal state is fine (and recommended!) In simple behavior, like what you describe. Things like the state of modal (open / closed), flags, and other minor things that are perfectly observed are contained in the React state.
Remember that Redux is most useful when processing the global state of an application. When trying to decide where to save the state, try to answer the question "Will any other part of the application even care about changing this?" If so, use the Redux repository. Otherwise, execute the internal state.
source
share