Re:Zero-Bundle-Size React Server Components
by slow_donkey on Monday December 21, 2020 @11:44PM
(#25502940)
You can be productive with Nest.js but I'd hate to promote it as a great solution. It's really a mashup of other JS libs with Nest bringing a rather convoluted form of dependency injection and http action decorators. You can build your own soup rather easily without the Nest overhead and with better choices. It's not the worst place to start, there's just better shit out there.
Re:Zero-Bundle-Size React Server Components
by hermitwriter on Monday December 21, 2020 @05:41PM
(#25500552)
I don't know. I use next.js and love it. But I have to implement two static methods for every thing I want to fetch... This also locks me into next.js...
Re:Zero-Bundle-Size React Server Components
by eyelidlessness on Monday December 21, 2020 @06:27PM
(#25500996)
I’ve shopped around a lot and most projects targeting a similar featureset are generally adopting the Next.js APIs for server-side data fetching. So it’s probably not as bad in terms of lock-in as you’d expect.
Re:Zero-Bundle-Size React Server Components
by xeon06 on Monday December 21, 2020 @11:50PM
(#25502977)
I think more people should take a look at https://blitzjs.com. It makes your lock in problem slightly worse I suppose but only because it argues that you want most apps to be coupled like this in real life. In exchange, it gives you great developer experience around things like data fetching.
Server side, Nest² offers much of the same. Think Angular but for backend dev. Yes, it has some boilerplate to it but for the most part, its CLI eases redundant typing.
[1] https://nextjs.org/ [2] https://nestjs.com/