Files
bun.sh/test/bun.js/solid-dom-fixtures/customElements/code.js
2022-06-22 23:21:48 -07:00

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>
</>
);