How to organize the Redux store of a Sidebar?

0

How the states of a Sidebar can be managed in the Redux store when it is active, opens or closes, stops being focused, etc ...

    
asked by Manuel 31.08.2017 в 20:09
source

1 answer

0

Usually I organize the store depending on the state so that it is the component that is painted in one way or another. Something like:

ui_sidebar: {
expand: 1,
active: 1
...
}

In this way, the component will know which item to expand and which link to mark as active

    
answered by 01.09.2017 / 14:03
source