Skip to content

Function: useFormNode() ​

Call Signature ​

ts
function useFormNode<NodeDefinition>(definition): NodeOf<NodeDefinition>;

Defined in: react/src/node-context.tsx:50

Returns the nearest provided node of this definition, typed by it. It does not re-render the component. Throws when no ancestor provided one.

Type Parameters ​

Type Parameter
NodeDefinition extends Definition

Parameters ​

ParameterType
definitionNodeDefinition

Returns ​

NodeOf<NodeDefinition>

Call Signature ​

ts
function useFormNode(): AnyGroupNode;

Defined in: react/src/node-context.tsx:52

Returns the nearest provided node of any definition, loosely typed. Throws when no ancestor provided one.

Returns ​

AnyGroupNode

Released under the MIT License.