Version: 1.0.xselector()function to select state for a given state path.selector(storeRootState, stateName)CopyReturns Redux state for the given pathExample#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', ) // component_state {state1: 'a', state2: 'b'} }, [])}Copy