Skip to content

Commit 29e8216

Browse files
committed
Add example for custom elements
1 parent c226da5 commit 29e8216

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

example/create-tree.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,13 @@ export function createTree() {
245245
),
246246
h('h2', 'xml:lang'),
247247
h('style', ':lang(fr) { color: #0366d6; }'),
248-
h('p', {xmlLang: 'fr'}, "C'est bleu ? Ensuite ça marche")
248+
h('p', {xmlLang: 'fr'}, 'C’est bleu ? Ensuite ça marche'),
249+
h('h2', 'Custom elements'),
250+
h('style', '.custom-element-class-name { color: #0366d6; }'),
251+
h(
252+
'some-element',
253+
{className: ['custom-element-class-name']},
254+
'Does it work?'
255+
)
249256
])
250257
}

0 commit comments

Comments
 (0)