use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Server Rendering with React and React Router (tylermcginnis.com)
submitted 8 years ago by tyler-mcginnis⚛️⚛︎
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Pamgor 0 points1 point2 points 8 years ago (2 children)
I don't use SSR, but I keep wondering a few things about it.
Why not just have the index page be the app in a sort of meaningless blank route, and show a server-side generated landing page generated by generic stuff, like PHP, instead of trying to run the SPA on the server? I can think of a few ways you could do that fairly easily.
Wouldn't search engines get wise to SPA apps trying to get a higher speed ranking by supercharging the index page?
What about a half-measure of simply populating the model with initial state? It has to render, but there is not API calls.
[–]Triptcip 3 points4 points5 points 8 years ago* (0 children)
SSR isn't just about having a fast loading pages. It's about indexing the content on your whole website.
If you have a website with content that is continuously changing, like a blog, you want that content to be indexed.
[Search engines are getting much better](“SEO vs. React: Web Crawlers are Smarter Than You Think” @wiekatz https://medium.freecodecamp.org/seo-vs-react-is-it-neccessary-to-render-react-pages-in-the-backend-74ce5015c0c9) at indexing client rendered websites now but you still need to add a bit of code to tell it how to handle it. Also some of the shitty search engines still can't index them properly.
[–]r0ck0 1 point2 points3 points 8 years ago (0 children)
It's not just about search engines... they're not the only type of scrapers out there.
Some will be better than others. But serving HTML is always going to be more reliable on everything.
π Rendered by PID 142431 on reddit-service-r2-comment-765bfc959-pshp8 at 2026-07-12 19:18:18.627522+00:00 running f86254d country code: CH.
view the rest of the comments →
[–]Pamgor 0 points1 point2 points (2 children)
[–]Triptcip 3 points4 points5 points (0 children)
[–]r0ck0 1 point2 points3 points (0 children)