r/javascript • u/starbist • Jul 27 '21
You don’t need React for building websites
https://www.silvestar.codes/articles/you-don-t-need-react-for-building-websites/5
u/eternaloctober Jul 27 '21
quote from article: "It is fair to say that I don’t understand it, so I cannot even rant about its features, shortcomings, or flaws."
come on now. let me be clear: I also developed a lot of web stuff pre-react as a junior programmer, worked on large projects pre-react, and I really struggled to learn react. I didn't get it. for some reason staring at code with proptypes and class based react really confused me and distracted me from what is more important. function components really transformed that. it's a lot easier to understand when you think: react is just functions that return JSX
function HelloWorld() { return <div>Hello world</div> }
...and you can "call" your function components using jsx
function App() { return <div><HelloWorld/></div> }
and by doing this, all your code is "componentized" and you dont get insane jquery spaghetti. that is "all you need" to get started and you can go from there...learning the hooks and what re-rendering is and controlled components etc. that will all come thru after you just start trying stuff
11
u/bhison Jul 27 '21
You also don't need a mouse
-1
u/bighi Aug 01 '21
The difference between React and a mouse is that a mouse makes most things easier and faster.
-6
12
Jul 27 '21 edited Jul 30 '21
[removed] — view removed comment
2
u/_default_username Jul 30 '21
This, one of my projects is migrating a company from old java apps, and Java applets that only run in internet explorer to react web apps.
15
u/Cyberlane Jul 27 '21
Honestly, this isn't anything new. Before React I'd see Angular, Bower, Backbone, Embed, jQuery... People would put out ads for specific frameworks rather than the language they're written in. In the past 20+ years I've been employed as a developer, I've only once ever had an employer that had a job ad which perfectly described the work they were doing, why they used specific frameworks, etc.
People will jump on something because it's popular or fun, or it's easier than knowing how to do things yourself and them the jobs advertise for people that can join them.
I fully appreciate React and feel it's great for a number of webapps, similarly I appreciate some aspects of modern Angular. However, I also understand from experience when to use a static html page and when to involve a JS framework. This experience is lost to a lot of the younger generation and unfortunately, is not easy to regain due to the popularity of these frameworks.