Function: useMdastNodeUpdater()
useMdastNodeUpdater<
T
>(): (node
) =>void
A hook that returns a function that can be used to update the mdast node. Use this in your custom editor components.
Type parameters
Type parameter |
---|
T extends RootContent |
Returns
Function
Parameters
Parameter | Type |
---|---|
node | Partial <T > |
Returns
void