Skip to content

Commit 6e476dc

Browse files
committed
docs(readme): update
1 parent 112b11a commit 6e476dc

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,20 @@
1212
```tsx
1313
import { renderPlanInBrowser } from "renderify";
1414

15-
await renderPlanInBrowser(
15+
renderPlanInBrowser(
1616
{
1717
id: "hello_jsx_runtime",
1818
version: 1,
1919
root: { type: "text", value: "Loading..." },
2020
source: {
2121
language: "tsx",
22-
code: `import { format } from "date-fns/format"; export default () => <section>Today: {format(new Date(), "yyyy-MM-dd")}</section>;`,
22+
code: `
23+
import { format } from "date-fns/format";
24+
25+
export default function App() {
26+
return <section>Today: {format(new Date(), "yyyy-MM-dd")}</section>;
27+
}
28+
`,
2329
},
2430
},
2531
{ target: "#mount" },

0 commit comments

Comments
 (0)