@@ -9,7 +9,7 @@ import type { PropsWithChildren } from 'hono/jsx'
9
9
type Props = { attr ?: ' a' | ' b' , attrFooBar ?: ' foo-bar' , isFoo ?: boolean , propFoo ?: string , propBar ?: string } & JSX.IntrinsicElements['div']
10
10
11
11
export function Foo({ children , attr , attrFooBar , isFoo , propFoo , propBar , ... props } : PropsWithChildren<Props >) {
12
- return (<div { ... props } data-attr = { attr } data-attr-foo-bar = { attrFooBar } data-is-foo = { isFoo } style = { { ' --prop-foo' : propFoo , ' --prop-bar' : propBar }} class = " foo" >\$ { children } </div >)
12
+ return (<div { ... props } data-attr = { attr } data-attr-foo-bar = { attrFooBar } data-is-foo = { isFoo } style = { { ' --prop-foo' : propFoo , ' --prop-bar' : propBar }} class = " foo" >{ children } </div >)
13
13
}
14
14
"
15
15
`;
@@ -23,7 +23,7 @@ import type { JSX, PropsWithChildren } from 'react'
23
23
type Props = { attr ?: ' a' | ' b' , attrFooBar ?: ' foo-bar' , isFoo ?: boolean , propFoo ?: string , propBar ?: string } & JSX.IntrinsicElements['div']
24
24
25
25
export function Foo({ children , attr , attrFooBar , isFoo , propFoo , propBar , ... props } : PropsWithChildren<Props >) {
26
- return (<div { ... props } data-attr = { attr } data-attr-foo-bar = { attrFooBar } data-is-foo = { isFoo } style = { { ' --prop-foo' : propFoo , ' --prop-bar' : propBar }} className = " foo" >\$ { children } </div >)
26
+ return (<div { ... props } data-attr = { attr } data-attr-foo-bar = { attrFooBar } data-is-foo = { isFoo } style = { { ' --prop-foo' : propFoo , ' --prop-bar' : propBar }} className = " foo" >{ children } </div >)
27
27
}
28
28
"
29
29
`;
@@ -37,7 +37,7 @@ import type { JSX, PropsWithChildren } from 'react'
37
37
type Props = { } & JSX.IntrinsicElements['div']
38
38
39
39
export function Foo({ children , ... props } : PropsWithChildren<Props >) {
40
- return (<div { ... props } className = " foo" >\$ { children } </div >)
40
+ return (<div { ... props } className = " foo" >{ children } </div >)
41
41
}
42
42
"
43
43
`;
0 commit comments