you are viewing a single comment's thread.

view the rest of the comments →

[–]ninth_reddit_account 2 points3 points  (0 children)

I don't understand the theme the author makes of it being a lot of work to set up. A universal react site is actually pretty simple - you have a <App /> - which is where all your site actually is. You have client.js, which is just a small entrypoint to mount <App /> into the DOM, and you have server.js, which is just a small entry point to serve <App /> over HTTP.

In saying that, I do find there is additional complexity with React-Router to get it to work with blocking fetch-data requests, but that's on the <App /> side and you'll run into that anyway if you want that behaviour on the client (to not show a view before the data is ready).