Version: 1.0.xsetState()function to dispatch set state action.Arguments#storeDispatcher()#redux store's dispatch function.action()#a state's set state action creator.payload#value to set in the state.setter()?#function to determine how the state should be set.setState(store.dispatch, action, payload, setter?: (state, payload) => newState)CopyExample#import { useEffect } from 'react'import useReduxState, { setState } from 'use-redux-states'const Component = () => { const { action } = useReduxState({ state: { state1: [] }, path: 'todos.completed' }) useEffect(() => { console.log( setState(store.dispatch, action, [1], (state, payload) => [ ...state, payload ]) ) // {state1: [1]} }, [])}Copy