Nocturnal Practitioners of Magic
Have ideas to improve npm?Join in the discussion! »

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

1.7.15-alpha2 • 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';
import LightningHello from 'lightning/hello';
 
const componentProps = {};
const serialized = renderComponent('lightning-hello', LightningHello, componentProps);

Keywords

none

Install

npm i @lwc/[email protected]

Version

1.7.15-alpha2

License

MIT

Unpacked Size

442 kB

Total Files

15

Homepage

lwc.dev/

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar