Skip to content

create new server-build, for server side use cases#1055

Merged
samouri merged 1 commit intomainfrom
server-build
May 5, 2021
Merged

create new server-build, for server side use cases#1055
samouri merged 1 commit intomainfrom
server-build

Conversation

@samouri
Copy link
Copy Markdown
Member

@samouri samouri commented May 5, 2021

summary

Creates a new binary for server-side usage.

Sample API Usage

import {createDocument} from 'worker-dom/server-lib'
const doc = createDocument();
const body = doc.createElement('body');
doc.appendChild(body);
console.log(doc.body.outerHTML) --> <body></body>

Note: this is super experimental and is very likely to change over the coming months

@samouri samouri self-assigned this May 5, 2021
@samouri samouri marked this pull request as ready for review May 5, 2021 18:15
@samouri samouri merged commit 3bdf0d2 into main May 5, 2021
@samouri samouri deleted the server-build branch May 5, 2021 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants