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 moreWhere is state Redux?
The state in Redux is stored in memory, in the Redux store . This means that, if you refresh the page, that state gets wiped out. The state in redux is just a variable that persists in memory because it is referenced (via closure) by all redux functions.
Read moreHow do I use Redux state?
Using Redux with any UI layer requires a few consistent steps:
Read more