In practice it’s usually easiest to implement such UI elements with local state , and refactor them into global state as needed. To follow up with this, the relevant Redux FAQ entry emphasizes that use of setState is completely fine: redux.js.org/docs/faq/…
Read moreHow do you define a state in Redux?
A state in Redux is a JavaScript object, where the internal state of the application is stored as its properties , e.g. which user is logged on. After having logged in, the user of your application may navigate to different pages in your application, but you need to remember somehow, who that user is.
Read moreHow do I change state in Redux?
The Redux store API is tiny and has only four methods:
Read more