We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 112b11a commit 6e476dcCopy full SHA for 6e476dc
README.md
@@ -12,14 +12,20 @@
12
```tsx
13
import { renderPlanInBrowser } from "renderify";
14
15
-await renderPlanInBrowser(
+renderPlanInBrowser(
16
{
17
id: "hello_jsx_runtime",
18
version: 1,
19
root: { type: "text", value: "Loading..." },
20
source: {
21
language: "tsx",
22
- code: `import { format } from "date-fns/format"; export default () => <section>Today: {format(new Date(), "yyyy-MM-dd")}</section>;`,
+ 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
+ `,
29
},
30
31
{ target: "#mount" },
0 commit comments