Version: NextgetState()function to get the state for a given state path.Arguments#statePath#path of the nest-able state to be selectedgetState(store, statePath, getter?: (state) => selectedState)CopyReturns#stateValue#getState(store, 'todos.completed', (state) => state.todos) // any valueCopyExample#import { useEffect } from 'react'import useReduxState, { getState } from 'use-redux-states'const Component = () => { useReduxState({ state: { state1: [], }, path: 'todos.completed' }) useEffect(() => { console.log(getState(store, 'todos.completed', (state) => state.todos)) // {state1: []} }, [])}Copy