import {useEffect} from 'react'
import useReduxState, {selector} from 'use-redux-states'
const Component = () => {
useReduxState({
state: {
state1: 'a',
state2: 'b',
},
path: 'component_state'
})
useEffect(() => {
selector(
store.getState(),
'component_state',
)
}, [])
}