Usage example
import { compose, withReducer } from 'frint-props';
const props$ = compose(
withReducer(
'counterState',
'dispatchCounter',
(state, action) => state,
{ counter: 0 }
)
)();
API
withState(
stateName: string,
dispatchName: string,
reducer: (state, action) => state,
initialState
)
Usage example
API