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
Name | Type | Optional | Description |
---|---|---|---|
props | IBuilderProperties | No | Specifies 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>
);
}