Skip to content

Commit

Permalink
fix incorrect usage examples (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 authored May 14, 2022
1 parent 24110c1 commit 71c6c41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ WCC exposes a few utilities to render your Web Components. Below is one example
```js
import { renderToString } from 'wc-compiler';
const { html } = renderToString(new URL('./path/to/footer.js', import.meta.url));
const { html } = await renderToString(new URL('./path/to/footer.js', import.meta.url));
console.debug({ html })
```
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default Home;
This function takes a string of HTML and an array of any top-level custom elements used with `import`, and returns the static HTML output of the rendered content.
```js
const { html } = await renderToString(`
const { html } = await renderFromHTML(`
<html>
<head>
<title>WCC</title>
Expand Down

0 comments on commit 71c6c41

Please sign in to comment.