Skip to main content

EngineProvider

EngineProvider is a component that provides the engine context to the script. It is required to be used in order to use the engine context.

Syntax

<EngineProvider params={params}>{children}</EngineProvider>

Parameters

NameTypeDescription
paramsEngineParamsThe engine parameters.

Example

const Provider = () => {
return (
<EngineProvider params={{name: 'My Script'}}>
{/* your script logic goes here */}
</EngineProvider>
);
};

Available on: Client Server