useMergeStateFromProps
API
import useMergeStateFromProps from '@restart/hooks/useMergeStateFromProps'
useMergeStateFromProps
<TProps, TState>(props: TProps, gDSFP: Mapper<TProps, TState>, initialState: TState) => [TState,MergeStateSetter<TState>]Parameters
props
TPropsgDSFP
(props: TProps, state: TState) => null | Partial<TState>initialState
TState
Return Value [TState,MergeStateSetter<TState>]