Skip to main content

React component

The Classic runner React component makes it easy to implement the runner in a React application.

tip

Read the React implementation guide for more information and examples.

Signature

ClassicRunner(props: IClassicProps): JSX.Element

Parameters

NameTypeOptionalDescription
propsIClassicPropsNoSpecifies the component properties.

Return value

Returns the runner JSX.Element.

Example

import { ClassicRunner } from "@tripetto/runner-classic";

function MyApp() {
return (
<div>
<h1>Welcome to my app</h1>
<ClassicRunner definition={/* Supply your form definition here */} />,
</div>
);
}

Run Try on CodeSandbox