Skip to main content

React component

The builder React component allows to use the builder in React applications with ease.

tip

Read the React implementation guide for more information and examples.

Signature

TripettoBuilder(props: IBuilderProperties): JSX.Element
info

The React component is located in a subfolder named react inside the builder package. Use the following import statement to use the component:

import { TripettoBuilder } from "@tripetto/builder/react";

Parameters

NameTypeOptionalDescription
propsIBuilderPropertiesNoSpecifies the component properties.

Return value

Returns the builder JSX.Element.

Example

import { TripettoBuilder } from "@tripetto/builder/react";

function MyApp() {
return (
<div>
<h1>Welcome to my app</h1>
<TripettoBuilder />
</div>
);
}

Run Try on CodeSandbox