News for hackers. Stuff that matters.
Re:Next.js Layouts RFC: Nested routes and layouts, designed ... by EnKopVand on Tuesday May 24, 2022 @02:31AM (#31488705)
> Are next.js and other similar React frameworks worth looking at if you don't use node.js on the backend?

It depends on why you’re doing so. We’ve recently moved from a C# .net backend to a TypeScript node backend and in such a case it (well obviously) makes perfect sense to utilise next.js.

In other cases where you split your front end and backend quite clearly, like using .net APIs and a JS front end it can make sense to use some degree of nextjs if you need to integrate some compiled parts into your react, maybe you need a fast loading and/or front page then it can be valuable to mix it.

If you don’t know why you’d need it, you probably don’t, however.

Re:Next.js Layouts RFC: Nested routes and layouts, designed ... by amcsi on Tuesday May 24, 2022 @03:31AM (#31489101)
I've heard people suggest to always use Next.js, because the alternative (Creat-React-App) is being developed too slowly.
Re:Next.js Layouts RFC: Nested routes and layouts, designed ... by mcintyre1994 on Tuesday May 24, 2022 @04:34AM (#31489505)
CRA isn’t really an alternative because it doesn’t have a server-side component. It’s also a lot less opinionated around things like routing. I’d say Remix is probably the main competitor to Next, that’s built around React Router and already has support for nested routes/layouts, and has opinionated support for the server-side too.
Re:Next.js Layouts RFC: Nested routes and layouts, designed ... by amcsi on Tuesday May 24, 2022 @05:04AM (#31489674)
I'm implying that if you "don't need Next.js", because it's too heavy-weight (because e.g. you already have a dedicated team working on the back end API using a different language), then too bad: there's no lighter-weight alternative that is viable.
Re:Next.js Layouts RFC: Nested routes and layouts, designed ... by nsonha on Tuesday May 24, 2022 @11:46AM (#31493599)
Nextjs has useful defaults and enough basic elements for front-end.

create-react-app is just a bunch of oppinions on how to config your app that dont really add much productivity if you are already familiar with webpack. Depending on the need I'd either go with react and my webpack config copied from last project or nextjs. Don't see the point of cra