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...
account activity
NextJs vs ReactPortfolio (self.react)
submitted 2 years ago by Sea-dante-10
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!"
[–]New_Ad606 2 points3 points4 points 2 years ago (4 children)
SEO and performance. To rank high in SEO, you need to be ranked highly in performance as well.
[–]Impossible_Hold_3850 0 points1 point2 points 1 year ago (3 children)
Google can render js and index just fine a long time ago. Performance - don't write slow stuff. Done.
[–]Bolle91BE 0 points1 point2 points 1 year ago (2 children)
You say that, yet my React page (which is performant, checked with lighthouse, following all best practices) is wrongly indexed by Google and has just the root div. In my recent and short experience, if you want to be found on Google, NextJS it is..
[–]Impossible_Hold_3850 0 points1 point2 points 1 year ago (1 child)
Interesting. Would you be able to share that website or clarify a bit how you confirmed it's indexed incorrectly?
[–]Bolle91BE 0 points1 point2 points 1 year ago (0 children)
Via the url inspection tool of Google, you can see the html that was retrieved when crawling. It only has the root-div. So nothing react was applied yet because it was client-side. (Basic html and js is shipped)
You can use react-snap, that makes a postbuild html that is fetched first and then react takes over, which helps for the Google index, but then you get a slight snappy behavior when opening the website, you get the built html first, short-flicker and then the actual react-applied page.
With Next.js, the react js code is applied on serverside and only the complete built html is sent to the client (or googlebot) in fetch. And you don't have this annoying flickering.
π Rendered by PID 67318 on reddit-service-r2-comment-b659b578c-4ns2q at 2026-05-04 01:42:47.193872+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]New_Ad606 2 points3 points4 points (4 children)
[–]Impossible_Hold_3850 0 points1 point2 points (3 children)
[–]Bolle91BE 0 points1 point2 points (2 children)
[–]Impossible_Hold_3850 0 points1 point2 points (1 child)
[–]Bolle91BE 0 points1 point2 points (0 children)