Server-Side Only React with Next
webcloud.se
Server-Side Only React with Next
1–10 of 75 posts
Re: Server-Side Only React with Next
#2Re: Server-Side Only React with Next
#3Re: Server-Side Only React with Next
#4Good, it should be server side only.
For a blog or mostly static webpage? SSR is probably the better choice. But there are many times where serving a minified React bundle to the client and letting it do all of the rendering work is better. It's actually a much lower strain on your server, because all you're doing is serving static files from behind a proxy like Nginx, whereas with NextJS your server incurs significant performance overhead from having to evaluate each page view in JS. Imagine this for a million visitors at once when you have content that cannot be statically cached.
Re: Server-Side Only React with Next
#5But since you don't need the client, you don't need any of that, right? Seems like without having to structure the server code in the same way you'd structure client code, things just get a lot simpler and the native React SSR stuff should be fine to use directly. Just curious which other features of Next you found you wanted for a server-only app?
Re: Server-Side Only React with Next
#6Isn't SSR React notoriously slow? Whats the benefit here over a standard templating language?
Re: Server-Side Only React with Next
#7Isn't SSR React notoriously slow? Whats the benefit here over a standard templating language?
Re: Server-Side Only React with Next
#8Isn't SSR React notoriously slow? Whats the benefit here over a standard templating language?
Never used SSR React, but one possibility comes to mind: It makes easier for single page JS apps to have compatibility with browsers that have JS disabled by allowing more code reuse between JS and no-JS versions.
Re: Server-Side Only React with Next
#9https://github.com/blitz-js/blitz
RedwoodJS, a new rails like full stack framework for JS is also very interesting: https://github.com/redwoodjs/redwood
They focus on a classic server side Rails like workflow but embrace the separation of API and clients on the technical side, for a future as a multi frontend framework (web, mobile etc.).
Re: Server-Side Only React with Next
#10Isn't SSR React notoriously slow? Whats the benefit here over a standard templating language?