News for hackers. Stuff that matters.
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?
Re:Next.js 2.0 by Hnus on Monday March 27, 2017 @09:12AM (#13967389)
Re:Next.js 2.0 by SlyShy on Monday March 27, 2017 @08:52AM (#13967236)
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 :-)
Re:Next.js 2.0 by ksherlock on Monday March 27, 2017 @08:55AM (#13967262)
babel, typescript, and bublé can convert jsx into javascript.