mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 04:49:06 +00:00
30 lines
445 B
JavaScript
30 lines
445 B
JavaScript
const template = (
|
|
<my-element
|
|
some-attr={name}
|
|
notProp={data}
|
|
attr:my-attr={data}
|
|
prop:someProp={data}
|
|
/>
|
|
);
|
|
|
|
const template2 = (
|
|
<my-element
|
|
some-attr={state.name}
|
|
notProp={state.data}
|
|
attr:my-attr={state.data}
|
|
prop:someProp={state.data}
|
|
/>
|
|
);
|
|
|
|
const template3 = (
|
|
<my-element>
|
|
<header slot="head">Title</header>
|
|
</my-element>
|
|
);
|
|
|
|
const template4 = (
|
|
<>
|
|
<slot name="head"></slot>
|
|
</>
|
|
);
|