Re:Next.js 2.0
by xutopia on Monday March 27, 2017 @08:51AM
(#13967233)
There is something I do not understand. Why does `<div>` not create a syntax error in the Javascript examples? Is there a pre-processor?
[ Parent
| on HN ]
Take a look here https://facebook.github.io/react/docs/react-without-jsx.html
Yes, JSX considers that valid syntax.
Re:Next.js 2.0
by developerdanny on Monday March 27, 2017 @08:53AM
(#13967239)
it uses JSX which allows you to use HTML in JS :-)