Skip to main content

Introducing Workflow Engine, try for FREE workflowengine.io.

Variable: define()

const define: <T>(component, displayName?) => Definer<T> = Definer.define

Static method to create an instance of the component's metadata builder class.

Type Parameters

T

T extends object

Parameters

component

ComponentType<T>

the React component.

displayName?

string

the display name for the anonymous component.

Returns

Definer<T>

the instance of the Definer class.

Stay in the know
Quickly Build Drag-and-Drop Forms
Star us on GitHub