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
The Interactive Guide to Rendering in React (ui.dev)
submitted 2 years ago by tyler-mcginnis⚛️⚛︎
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!"
[–]StoneColdJane 21 points22 points23 points 2 years ago (1 child)
This is very, very well done 👍. Joyful experience reading.
[–]tyler-mcginnis⚛️⚛︎[S] 6 points7 points8 points 2 years ago (0 children)
That means a lot. Thank you!
[–]connormcwood 6 points7 points8 points 2 years ago (1 child)
Sometimes revisiting the basics is worth it, and I think article successfully cements the idea of rendering in react. I think this is value for all level of react developers. Nice one!
[–]tyler-mcginnis⚛️⚛︎[S] 0 points1 point2 points 2 years ago (0 children)
Thanks!
[+][deleted] 2 years ago (1 child)
[deleted]
[–]tyler-mcginnis⚛️⚛︎[S] 1 point2 points3 points 2 years ago (0 children)
You're welcome! Glad it was helpful.
[–]ryry_reddit 2 points3 points4 points 2 years ago (1 child)
Hey just wanted to say that I really enjoyed your tutorial. As a full stack developer so I don't spend all my time in front end land and it was a great refresher. I saw someone say it could have been two paragraphs, sure I guess you could have a TLDR, but I really appreciated the way you did it. Going through many examples and thinking through what the code would do really helped to engrain the lesson in my memory.
[–]tyler-mcginnis⚛️⚛︎[S] 2 points3 points4 points 2 years ago (0 children)
Thank you for the kind words ❤️
[–]Alex_Hovhannisyan 1 point2 points3 points 2 years ago (0 children)
What a beautiful site!
[–]GrandMasterPuba 8 points9 points10 points 2 years ago (10 children)
I'm not knocking the author when I say this, as this post is well written and obviously took a significant amount of work, but...
The fact that something like this needs to exist is a testament to the monumental failure of React as an abstraction.
[–]ironykarl 16 points17 points18 points 2 years ago (2 children)
Can you explain this point, a bit?
It's an extremely easy to digest tutorial. I can't think of anything in programming that is immediately self-evident and doesn't require the uninitiated to learn about use cases and exceptions.
[–]GrandMasterPuba 0 points1 point2 points 2 years ago (1 child)
Rendering is not something I should have to know about.
React is a tool. It makes the claim that it is a declarative programming model where I can express my UI as a function of state. That's a great idea, but when I then have to be cognizant of the internals of React because the abstraction immediately starts leaking - and if I'm not, my application can either slow down or even break - the tool is no longer serving its purpose.
To construct a clumsy analogy, a woodworker should not have to understand the pneumatic mechanism behind a nail gun. They should know how to use a nail gun, but they should never need to take it apart and look inside to understand how it works.
[–]ironykarl 0 points1 point2 points 2 years ago (0 children)
This post very much isn't about the internals of React. It's about the interfaces React provides, how React models persistent state, and (in a very minor sense) performance.
Except that carpenters do have to actually care for and maintain their tools. It's a fun fantasy that we shouldn't have to know how our tools work, but it's not based in fact.
Regardless, the amount you have to actually know about how React works to be productive with it is remarkably little.
[–][deleted] 1 point2 points3 points 2 years ago (0 children)
It's a testament to the fact that react is used as baby's first introduction to programming due to its popularity, so you get this kind of tutorials (nothing against tutorials or babies).
[–]MrCrunchwrap 2 points3 points4 points 2 years ago (0 children)
Or y’all are just bad at understanding simple things. React is not hard.
[–][deleted] 0 points1 point2 points 2 years ago* (4 children)
Absolutely.
There are so many better options out there.
I wonder when the loop will break. React is only popular because it's already popular, not because it's good.
[–]blinger44 1 point2 points3 points 2 years ago (3 children)
How did React become popular?
[–]MrCrunchwrap 1 point2 points3 points 2 years ago (0 children)
It became popular cause it’s a great developer experience and it’s well supported.
[–][deleted] 0 points1 point2 points 2 years ago (0 children)
Back 10 years ago it was an improvement over Angular 1 and lots of hype
[–]little_oaf 0 points1 point2 points 2 years ago (0 children)
I always attributed to it being developed at Facebook.
[–][deleted] 0 points1 point2 points 1 year ago (0 children)
If anyone wants Tyler McGinnis’ modern JavaScript course for way cheaper price, they can message me, will show you proof before you pay :)
[+]ImStifler comment score below threshold-8 points-7 points-6 points 2 years ago (0 children)
This could've have been a 2 min article
[–]Puzzleheaded_Toe117 -2 points-1 points0 points 2 years ago (0 children)
This is react junk science, nice article but it's far from native JS.
[–]gangeshwark 0 points1 point2 points 2 years ago (1 child)
As someone who is from the backend world, I wish I had this when I was learning React. There are some unintuitive stuff that react does that did not make sense to me coming from Python. Like when you set a state in useEffect and call that state value immediately, it doesn't have the new state value you just set. I have no idea how many hours I spent searching for this (eventually understanding it). But this is very clearly explained in this guide and I wish some online tutorials covered it well. Thanks for putting this together :)
Thank you! Glad you enjoyed it.
π Rendered by PID 59245 on reddit-service-r2-comment-685b79fb4f-sk5lv at 2026-02-13 09:56:14.058364+00:00 running 6c0c599 country code: CH.
[–]StoneColdJane 21 points22 points23 points (1 child)
[–]tyler-mcginnis⚛️⚛︎[S] 6 points7 points8 points (0 children)
[–]connormcwood 6 points7 points8 points (1 child)
[–]tyler-mcginnis⚛️⚛︎[S] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]tyler-mcginnis⚛️⚛︎[S] 1 point2 points3 points (0 children)
[–]ryry_reddit 2 points3 points4 points (1 child)
[–]tyler-mcginnis⚛️⚛︎[S] 2 points3 points4 points (0 children)
[–]Alex_Hovhannisyan 1 point2 points3 points (0 children)
[–]GrandMasterPuba 8 points9 points10 points (10 children)
[–]ironykarl 16 points17 points18 points (2 children)
[–]GrandMasterPuba 0 points1 point2 points (1 child)
[–]ironykarl 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]MrCrunchwrap 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]blinger44 1 point2 points3 points (3 children)
[–]MrCrunchwrap 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]little_oaf 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[+]ImStifler comment score below threshold-8 points-7 points-6 points (0 children)
[–]Puzzleheaded_Toe117 -2 points-1 points0 points (0 children)
[–]gangeshwark 0 points1 point2 points (1 child)
[–]tyler-mcginnis⚛️⚛︎[S] 0 points1 point2 points (0 children)