News for hackers. Stuff that matters.
Re:Next.js 8 released by todd3834 on Monday February 11, 2019 @10:17AM (#19135003)
I’m very involved in this space. The company I work for wrote a library similar to Next.js before it was announced and before create-react-app. There are so many things that these solutions solve to only focus on SSR is missing the point. SSR is one benefit of many and others have already explained why they care about that. There are many use cases where both SEO and complex interactions make sense on the same page. Next.js is also going to help you with overall architecture decisions like routing, page level code splitting, where you fetch data just off the top of my head. Sure you can build these yourself, that’s what I did before Next.js was a thing but now that I have a deep understanding of all of the things we wrote. I would use an existing community backed solution before building from scratch in a new app. We are even very interested in migrating from our home rolled solution. Currently we are vendor locked into our own creation which means we have to continue to maintain it. It is way more expensive than any lock in that would have come with Next.js.
Re:Next.js 8 released by tracker1 on Monday February 11, 2019 @12:21PM (#19136138)
+1, even though I don't use the next.js tools, sometimes having certain things configured in the box is useful. I tend to stick with jest for testing simply because code coverage tooling can be a pain to get working right with babel, etc and it's just easier to use jest.

As to why SSR React, it's mostly going to come down to SEO, I don't know how much you'll get negatively impacted for being SSR vs SPA these days with proper routing myself. Google has been working on supporting client rendered scraping for at least 6-7 years now. And when a user hits more than one route, they've usually gained back anything they've lost for the extra load time.

Re:Next.js 8 released by midway on Monday February 11, 2019 @11:53AM (#19135840)
> Next.js is also going to help you with [...] routing

I respect your experience and knowledge but people in this thread say exactly the opposite: Next.js' routing is actually not helping you.

Re:Next.js 8 released by todd3834 on Monday February 11, 2019 @12:57PM (#19136498)
Fair enough. It helps you but it could be better. Depends if you need dynamic routing or not. Personally I don’t find their solution for dynamic routing terrible but it could be better.