@lwc/engine-server
TypeScript icon, indicating that this package has built-in type declarations

6.5.3 • Public • Published

@lwc/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 LWC 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 LWC constructor. The output format itself is aligned with the current leading proposal, but is subject to change.

import { renderComponent } from '@lwc/engine-server';
import LightningHello from 'lightning/hello';

const componentProps = {};
const serialized = renderComponent('lightning-hello', LightningHello, componentProps);

Readme

Keywords

Package Sidebar

Install

npm i @lwc/engine-server

Homepage

lwc.dev

Weekly Downloads

51,529

Version

6.5.3

License

MIT

Unpacked Size

3.85 MB

Total Files

19

Last publish

Collaborators

  • divmain
  • lwc-admin
  • caridy
  • tbliss
  • pmdartus
  • ekashida
  • kevinv11n
  • jye-sf
  • rui.qiu
  • ravi.jayaramappa
  • jodarove
  • abdulsattar
  • nolanlawson
  • jmsjtu