3 ms·
JSX is just JavaScript. const A = () => <div>hello</div> Is the same as const A = () => h(“div“, null, “hello“) JSX is neither HTML nor a template D
by mlsarecmg 9y ago
JSX is just JavaScript.
const A = () => <div>hello</div>
Is the same as
const A = () => h(“div“, null, “hello“)
JSX is neither HTML nor a template DSL, it simply transform into a function signature. 9 out of 10 frameworks base on the functional approach today, including Vue.