TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

What Is React: A Visual Introduction for Beginners

105 pointsby focuserover 4 years ago

8 comments

kingdomcome50over 4 years ago
I&#x27;m rather convinced at this point that all of these people chanting &quot;Can we just go back to traditional approaches!&quot; have never built a web app of reasonable complexity, never used something like React, or have some sort of combination of FOMO and&#x2F;or comfort in their long-held approach.<p>I don&#x27;t have experience with all of these technologies but have been using React since its inception, and let me tell you, there is no amount of (reasonable) money that would make me want to go back to the times when jQuery the big new thing. It was awful! Procedurally manipulating the DOM! I mean, c&#x27;mon guys. Talk about a mess... Where are all of the FP evangelists when you need them?<p>And I know someone out there is bound to downvote me and respond with something like, &quot;B b b but that one site where it downloaded 300kB of JS for a landing page! It&#x27;s such a bad user experience!&quot;. Sure. That&#x27;s precisely what I&#x27;m talking about &#x2F;s.<p>The reality is that libraries like React are so popular because they make front-end web development not suck. You can actually <i>reason</i> about the behavior of your UI without first committing to memory a whole of bunch of procedural, ad-hoc `let el = document.getElementById(&#x27;i-hate-myself&#x27;)` nonsense.<p>I get it. It makes web pages a bit slower, and sometimes (maybe more often than that) get abused. That isn&#x27;t fun for anyone. But level the critique at the idiots downloading a MB of JS to power a single dropdown, not the tool managing that dropdown&#x27;s state.
评论 #26027946 未加载
评论 #26034625 未加载
评论 #26027311 未加载
评论 #26029023 未加载
recursivedoubtsover 4 years ago
<i>The traditional approach stopped working. It becomes chaotic and inefficient to always directly talk to Domo.</i><p>No.<p>The traditional approach was web 1.0, which was abandoned due to UX issues, not complexity.<p>Later on, the chaos of direct DOM manipulation by multiple javascript entry points became too much and was formalized into the SPA frameworks we see today.<p>An alternative solution is to go back to the true traditional approach &amp; address the interactivity issues <i>within</i> that architecture (REST&#x2F;HATEOAS).
评论 #26026185 未加载
评论 #26026709 未加载
评论 #26026643 未加载
评论 #26025848 未加载
hliyanover 4 years ago
When I&#x27;m pressed to oversimplify, I usually respond with &quot;A React component is basically a function that takes a set of parameters and spits out HTML, and can react to changes in those parameters and update said HTML. The rest is implementation detail.&quot;
boringgover 4 years ago
So I can&#x27;t discern if React is a loved or hated technology (also it doesn&#x27;t have to be binary). At the company I was working at the front end devs brought in React and were super excited about it, but reading a couple comments in here it seems like people have some reservations.<p>I haven&#x27;t invested the time into as I don&#x27;t have a use case but I keep hearing about and now get the sense it isn&#x27;t necessarily worth looking at until i have a needed case.
评论 #26026464 未加载
评论 #26026458 未加载
评论 #26026490 未加载
评论 #26026696 未加载
评论 #26028046 未加载
评论 #26026824 未加载
评论 #26026833 未加载
评论 #26026382 未加载
评论 #26026744 未加载
rockostrichover 4 years ago
Just skimmed through it, but this looks like a great intro for non-technical folk. I&#x27;ll be saving it for when people ask me for resources into getting into frontend dev.
评论 #26025852 未加载
vladsanchezover 4 years ago
Thanks for sharing your illustrations but this site&#x2F;page is an effing CPU&#x2F;GPU HOG!!!!<p><a href="https:&#x2F;&#x2F;imgur.com&#x2F;9Pi1rBa" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;9Pi1rBa</a>
majky538over 4 years ago
It&#x27;s Facebook library, not FE framework, enough for me. Never spent so much time configuring Angular app as React one.
评论 #26025644 未加载
systemvoltageover 4 years ago
Have you tried developing a doctors appointment website with React (or any SPA frameworks) say Django or Flask? It&#x27;s a pain in the ass. Usually, you throwaway all the cool things about Django and turn it into a stupid JSON API and then you build a bunch of cruddy shit with npm tooling and cry yourself to javascript dependency hell. Then you need another server to serve up this bundle.js and a barebones index.html file. Great if you&#x27;re building a Google Docs competitor. 99.999% of the people aren&#x27;t.<p>I think VueJS is excellent and surprising to see React&#x27;s popularity. Vue can be used just like jQuery without any nodejs tooling. Just like every discussion about this topic, React fanboys will respond with &quot;But, technically, you can do that with React too&quot; [1], yeah... It sucks at doing that. Without JSX, you can&#x27;t interweave for example Jinja2 templates + React. Nor can you interweave JSX + Jinja2. With VueJS? It&#x27;s just HTML with a few v- attributes. Even if React worked well with direct script tags in HTML, it still sucks at it because it&#x27;s mainly designed for SPAs in mind. There is a lot of existing discussion on this topic [1].<p>I absolutely abhor the tooling&#x2F;npm&#x2F;babel&#x2F;nodejs&#x2F;webpack all this nonsense that Javascript frameworks need. They should be sort of like jQuery - no prebuilding steps - just drop and play. A doctors appointment website doesn&#x27;t need to be an SPA. VueJS is the only framework that allows you to progressively enhance something like a Flask based website in the most natural jQuery-like way.<p>Oh btw, Svelte is yet another one - of course its SPA framework (Good luck trying to make it work on an MPA website). I am completely underwhelmed by Svelte, and ofcourse the JS peeps are flocking to it. :|<p>[1] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24520116" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24520116</a>
评论 #26028723 未加载
评论 #26028787 未加载
评论 #26029697 未加载
评论 #26028496 未加载