Skip to main content

Hooks

useReducer(reducer, initialState, initilizer)

Update state by a provided reducer.

useState(initialState)

Returns state and state updater.

useMount(callback)

Execute callback when mounting DOM.

useWatch(callback, deps)

Execute callback when deps are changed.

useConstructor()

UNSTABLE HOOK

Be able to get the value of Editor.js plugin class constructor.