Skip to content

Commit

Permalink
Add example for custom elements
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 20, 2024
1 parent c226da5 commit 29e8216
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion example/create-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,13 @@ export function createTree() {
),
h('h2', 'xml:lang'),
h('style', ':lang(fr) { color: #0366d6; }'),
h('p', {xmlLang: 'fr'}, "C'est bleu ? Ensuite ça marche")
h('p', {xmlLang: 'fr'}, 'C’est bleu ? Ensuite ça marche'),
h('h2', 'Custom elements'),
h('style', '.custom-element-class-name { color: #0366d6; }'),
h(
'some-element',
{className: ['custom-element-class-name']},
'Does it work?'
)
])
}

0 comments on commit 29e8216

Please sign in to comment.