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))
}, [])
}