ComponentState Hook
Is used to create actions
const TodoDescriptionHooks = ({ statePath, stateIndex }) => {
const { actions, statePath } = useComponentState(TodoStateActions, statePath, stateIndex);
return (<div>{ actions.testTodoDescription }</div>);
};
export default React.memo(TodoDescriptionHooks);Last updated