Skip to content

Commit 2ef9a02

Browse files
committed
fix example jsx issue
1 parent d6e20a8 commit 2ef9a02

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

examples/preact/basic/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<meta name="og:title" content="Basic Example - TanStack Devtools" />
1313
<meta
1414
name="og:description"
15-
content="A basic example of using TanStack Devtools with React and loading up the social previews"
15+
content="A basic example of using TanStack Devtools with Preact and loading up the social previews"
1616
/>
1717
<meta name="og:url" content="https://example.com/basic" />
1818

@@ -23,13 +23,13 @@
2323
<meta name="twitter:title" content="Basic Example - TanStack Devtools" />
2424
<meta
2525
name="twitter:description"
26-
content="A basic example of using TanStack Devtools with React and loading up the social previews"
26+
content="A basic example of using TanStack Devtools with Preact and loading up the social previews"
2727
/>
2828
<meta name="twitter:url" content="https://example.com/basic" />
2929
<script src="https://unpkg.com/react-scan/dist/auto.global.js"></script>
3030
<title>Basic Example - TanStack Devtools</title>
3131
<description
32-
>A basic example of using TanStack Devtools with React.</description
32+
>A basic example of using TanStack Devtools with Preact.</description
3333
>
3434
</head>
3535
<body>
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
import type { ComponentChildren } from 'preact'
12
import { Button } from './button'
23

3-
export const ButtonWithProps = (props: { children: React.ReactNode }) => {
4+
export const ButtonWithProps = (props: { children: ComponentChildren }) => {
45
return <Button {...props} />
56
}

0 commit comments

Comments
 (0)