3 ms·
There is something I do not understand. Why does `<div>` not create a syntax error in the Javascript examples? Is there a pre-processor?
by xutopia 10y ago
There is something I do not understand. Why does `<div>` not create a syntax error in the Javascript examples? Is there a pre-processor?
- SlyShy 10y agoYes, JSX considers that valid syntax.
- developerdanny 10y agoit uses JSX which allows you to use HTML in JS :-)
- ksherlock 10y agobabel, typescript, and bublé can convert jsx into javascript.
- Hnus 10y agoTake a look here https://facebook.github.io/react/docs/react-without-jsx.html https://facebook.github.io/react/docs/react-without-jsx.html