blob: bc844b7d888d4324d06b31f1f4343536a336a843 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
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" />
</>
);
|