Skip to main content

Introducing Workflow Engine, try for FREE workflowengine.io.

Function: useBuilderComponent()

useBuilderComponent<T>(builderComponent, viewerComponent): ComponentType<T>

Returns a React component based on the current builder mode.

Type Parameters

T

T

Parameters

builderComponent

ComponentType<T>

the component to use in the 'builder' mode.

viewerComponent

ComponentType<T>

the component to use in the 'viewer' mode.

Returns

ComponentType<T>

the React component based on the current builder mode.