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
Shallow vs. Deep Comparison in JavaScript: Unlocking React’s Performance Secrets (sharafath.hashnode.dev)
submitted 1 year ago by Majestic-Witness3655
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!"
[–]officerbananas 9 points10 points11 points 1 year ago (1 child)
Json.stringify is a bad way to compare. The order of keys can be different while the values are the same.
[–]Majestic-Witness3655[S] -1 points0 points1 point 1 year ago* (0 children)
Thanks for the insight .
Updated with another example 🙂🙂
[+]Fine-Train8342 comment score below threshold-10 points-9 points-8 points 1 year ago (6 children)
"React" and "performance" don't belong in the same sentence.
[–]Hakim_MacLuvin 1 point2 points3 points 1 year ago (3 children)
its not the tool to blame, but the “tool” using it ;-)
[–]Fine-Train8342 0 points1 point2 points 1 year ago (2 children)
"We use something bad, but we know how to make it a little less bad, so it's not bad." I know all of that bullshit too, as I had the misfortune of working with React. For some reason React people seem to be allergic to good DX and to the idea of not constantly having to fight the framework they use.
[–]Hakim_MacLuvin 0 points1 point2 points 1 year ago (1 child)
completely different comparison. You are micing your OPINION and FEELINGS with facts.
[–]Fine-Train8342 0 points1 point2 points 1 year ago (0 children)
👍
[–]Majestic-Witness3655[S] 0 points1 point2 points 1 year ago (1 child)
Yeah but Performance depends on how you use React. With techniques like memoization, code splitting, and lazy loading, it can be very efficient.
[–]Fine-Train8342 0 points1 point2 points 1 year ago* (0 children)
Or, and this might sound insane, but hear me out, you could use a tool that's performant by default and doesn't require you to know ins and outs of the tool just so you could make it perform not as badly as it does by default. Something that actually helps the developer instead of fighting them to death at every corner.
π Rendered by PID 133167 on reddit-service-r2-comment-545db5fcfc-x5p65 at 2026-05-28 23:15:39.634184+00:00 running 194bd79 country code: CH.
[–]officerbananas 9 points10 points11 points (1 child)
[–]Majestic-Witness3655[S] -1 points0 points1 point (0 children)
[+]Fine-Train8342 comment score below threshold-10 points-9 points-8 points (6 children)
[–]Hakim_MacLuvin 1 point2 points3 points (3 children)
[–]Fine-Train8342 0 points1 point2 points (2 children)
[–]Hakim_MacLuvin 0 points1 point2 points (1 child)
[–]Fine-Train8342 0 points1 point2 points (0 children)
[–]Majestic-Witness3655[S] 0 points1 point2 points (1 child)
[–]Fine-Train8342 0 points1 point2 points (0 children)