Could a smart person please compare and contrast this RFC and the ideas of remix.run?
Next.js Layouts RFC: Nested routes and layouts, designed for Server Components
51–60 of 123 posts
Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components
#52I am not a fan of the “directory structure creating an implicit router” convention of next.js. I wish I would define a handler in code instead.
Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components
#53Earlier quoted context omitted.
According to Ryan Florence (Remix's creator) they are "ripping features straight from Remix". https://twitter.com/ryanflorence/status/1528859776930545665
It’s an odd claim, because people have been asking for this (nested routes) more-or-less since Next was first released. In fact, Remix is basically a compiler for the patterns we could achieve back in the days of React Router 2 and 3 (2015-2017). The fact that the APIs looks similar seems largely inevitable based on the fact that everyone seems to be converging around defining routes using folder and file name conven…
Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components
#54Earlier quoted context omitted.
It's a full fledged company and somehow Ryan Florence and the other guy are quite heavy handed in pushing their business which irks me. Even react router was moved to a business org called react training if I remember so that they could sell their courses. Now there is nothing wrong with earning money but this new wave of "open source" businesses is a bit yucky.
theres a lot of cognitive dissonance in monetization of open source by consumers of the product. If you can't charge money for the software, selling courses is the next best thing. Why is it yucky?
Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components
#55Earlier quoted context omitted.
So we need to give credit now to every little bit of inspiration we get when coming up with new features and ideas? Not really sure what the problem is here.
You'd have to ask Ryan :) IMO it's really just a matter of time before good ideas end up in other projects. It's inevitable. Obviously everyone wants their framework to be as good and popular as possible.
Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components
#56Could a smart person please compare and contrast this RFC and the ideas of remix.run?
According to Ryan Florence (Remix's creator) they are "ripping features straight from Remix". https://twitter.com/ryanflorence/status/1528859776930545665
Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components
#57Quoted post unavailable.
Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components
#58I am not a fan of the “directory structure creating an implicit router” convention of next.js. I wish I would define a handler in code instead.
Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components
#59Earlier quoted context omitted.
Naw, I don't agree. SSG is a killer feature. The fact that Next.js is able to do both SSG and SSR means that it's positioned to be a wholesale replacement for most React tech stacks. You can still have a "CSR-like" app with SSG, while having all of the Next.js conventions (such routing, layouts, etc.). Additionally, it's actually pretty useful for sites that need to be heavily SEO-optimized. Next.js is an impressive…
Static isn't going anywhere. In my opinion, one the best parts about Next.js is you can blend static with dynamic, on a per-page basis. Your landing page can be completely static + periodically updated in the background (i.e. ISR) and your /dashboard page could be a fully server-rendered application behind auth. You can do both without ejecting from the framework and being able to update and receive performance/secur…
Re: Next.js Layouts RFC: Nested routes and layouts, designed for Server Components
#60I am not a fan of the “directory structure creating an implicit router” convention of next.js. I wish I would define a handler in code instead.
Oh interesting. Why not? Directory and file based routing is my favorite feature of Next.js, Remix, and other frameworks that do it.