JSX test
Prueba de JSX + Babel
Babel + JSX
/* @jsx h */
const helloWorld = < div className = 'hello' > Hello,
world! < /div>
function h(type, props, ...args) {
const children = args.length ? [].concat(...args) : null;
return {
type,
props,
children
}
}
const div = < div className = 'hello' > Hello,
world! < /div>
console.log(div)