Add vdom function examples to code samples
treshugart opened this issue · 2 comments
treshugart commented
This should be in the JS tab and we should have a separate tab for JSX.
The examples have something like:
skate.define('x-test', {
render() {
<div />
}
});
Thos should be moved to a "JSX" tab and and we should include in the "JS" tab:
const ['div'] = skate.vdom.builder('div');
skate.define('x-test', {
render() {
div();
// or
skate.h('div');
}
});
Is using the builder API better to show than using skate.h
?
Hotell commented
Why not rather using skate.h
instead of skate.vdom
in "JS" tab ?
P.S.: vdom.element
and vdom.text
are deprecated in docs
treshugart commented
@Hotell this issue was created pre-deprecation. I'll update.