Live data from Hacker News

React Server

react-server.io

21–30 of 143 posts

Re: React Server

#24
post #8
post #3

I'd really love to see a demo of what they mean by "seamless transitions."

The website itself is meant to serve as a demo. :) When you land on the site the first page is rendered by the server. Then the client controller wakes up and subsequent page views ask the server for data, but render in the browser. That's what we mean by "seamless transitions".

Is it possible to have all pages rendered server side?

Re: React Server

#25
post #24
post #8

Earlier quoted context omitted.

The website itself is meant to serve as a demo. :) When you land on the site the first page is rendered by the server. Then the client controller wakes up and subsequent page views ask the server for data, but render in the browser. That's what we mean by "seamless transitions".

Is it possible to have all pages rendered server side?

are you asking to have a static site pre-built from React?

I'd assume when he says "first page" he means any first page but generally from there the rest becomes dynamic react. Depending on how you load your data it should be much quicker to render entirely in the browser once the page has loaded.

Re: React Server

#27

Getting some weird issues, can only get to the docs by clicking on the link to the docs and then refreshing the page a couple of times...

We had some scaling issues, and have added a couple more hosts to the pool. The errors should be resolved now

Re: React Server

#29
post #24
post #8

Earlier quoted context omitted.

The website itself is meant to serve as a demo. :) When you land on the site the first page is rendered by the server. Then the client controller wakes up and subsequent page views ask the server for data, but render in the browser. That's what we mean by "seamless transitions".

Is it possible to have all pages rendered server side?

All pages are rendered server-side by default. React Server sends each server-side rendered element as soon as it, and every element before it, are ready, up to a timeout, at which point it sends the late arrivals as they trail in. On the client side, React Server picks up where the server left off, to render client side code as the user interacts with the page.

Re: React Server

#30
post #24

Earlier quoted context omitted.

Is it possible to have all pages rendered server side?

are you asking to have a static site pre-built from React? I'd assume when he says "first page" he means any first page but generally from there the rest becomes dynamic react. Depending on how you load your data it should be much quicker to render entirely in the browser once the page has loaded.

Well, I was thinking you could have all pages server-side rendered in the case of a low-power mobile device, and leave the hybrid approach for desktop browsers.

The user-agent string could be used to decide which approach to use.

Post reply on HN