Re:Next.js 3.0 Preview: Static Exports and Dynamic Imports
by butabah on Monday May 15, 2017 @04:46PM
(#14344955)
On GitHub, it seems like the javascript sources behind your pages is throwing their syntax highlighting off. Seems like when you embed HTML it hiccups. Any idea how one would fix this?
[ Parent
| on HN ]
Re:Next.js 3.0 Preview: Static Exports and Dynamic Imports
by nfriedly on Monday May 15, 2017 @04:55PM
(#14345033)
Oh, hah, it's getting bit by lone single quotes, (AKA apostrophes). I think it's something GitHub would have to fix, although perhaps a .jsx extension would help.
Update: Yep, GitHub highlights correctly with a .jsx extension - see https://github.com/nfriedly/user-agent.io/blob/jsx-test/page... - but then Next.js can't "see" the page :(
So, I'm going to have to stick with .js for now.