Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 3 additions & 22 deletions packages/@lwc/engine-server/README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,7 @@
# @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 is deprecated and has been replaced by [`@lwc/ssr-compiler`](https://www.npmjs.com/package/@lwc/ssr-compiler) and [`@lwc/ssr-runtime`](https://www.npmjs.com/package/@lwc/ssr-compiler).

This package can be used to render LWC components as strings in a server environment.
## Links

## 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][explainer], but is subject to change.

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

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

[explainer]: https://github.com/mfreed7/declarative-shadow-dom/blob/master/README.md
- [Server-Side Rendering guide](https://lwc.dev/guide/ssr)