Embed Apps in React

Native embedding in your React-based Web App

First, install the Lowcoder SDK. https://www.npmjs.com/package/lowcoder-sdkarrow-up-right

yarn:

yarn add lowcoder-sdk

npm:

npm install lowcoder-sdk

Integrate an OpenFlower App or Module into your existing app

  1. Publish your app/module in OpenFlower.

  2. Set the app/module's access privilege as public.

  3. Add code in your existing app as below.

Import CSS styles

import "lowcoder-sdk/dist/style.css";

For React app:

import { LowcoderAppView } from "lowcoder-sdk";

<LowcoderAppView appId="{YOUR_APPLICATION_ID}" baseUrl="https://prod-us1.openflower.org" />;

Properties

Name
Type
Description
Default value

appId

string

The app's id is required!

--

baseUrl

string

The api base url of the OpenFlower Instance.

Free playground account - https://prod-us1.openflower.org or Cloud Hosted account - https://flower-us1.bitwebservices.com

onModuleEventTriggered

(eventName: string) => void

(Only for Modules) Triggered when module's custom event is triggered. Works only when the app is a module.

--

onModuleOutputChange

(output: any) => void

(Only for Modules) Triggered when module's outputs change. Works only when the app is a module.

--

Modules are special Apps, which make bidirectional communication between your app and the OpenFlower Module possible. You can send data to Module-Inputs and receive Data back via Module Outputs. Also, you can trigger Methods and listen to Events.

Invoke module methods

For vanilla js:

Last updated