@kdcloudjs/kwc-engine-server
v1.0.0
Published
Renders KWC components in a server environment.
Maintainers
Keywords
Readme
@kdcloudjs/kwc-engine-server
WARNING: This is an experimental package. It is subject to change, may be removed at any time, and should be used at your own risk!
This package can be used to render KWC components as strings in a server environment.
Supported APIs
This package supports the following APIs.
renderComponent()
This function renders a string-representation of a serialized component tree, given a tag name and an KWC constructor.
import { renderComponent } from '@kdcloudjs/kwc-engine-server';
import KingdeeHello from 'kingdee/hello';
const componentProps = {};
const serialized = renderComponent('kingdee-hello', KingdeeHello, componentProps);