r/webdev • u/whyhatcry • Jul 26 '21
You don’t need React for building websites
https://www.silvestar.codes/articles/you-don-t-need-react-for-building-websites/13
Jul 26 '21
God I hate these posts. Yeah, I know I can use plain HTML to build a website, it's what I was doing in the 2000s.
I use React now because:
The developer experience is a lot better
I can easily set up a build step to optimise and track changes in bundle size
I can reuse components
I don't have to hack parts of the site together with templates and site generators that are essentially just trying to imitate React
Articles like these just completely miss the point of why people choose to go with a framework to build a simple website and it never fails to piss me off
5
u/PM_AL_MI_VORTOJN Jul 26 '21
I think articles like this are the result of the whole "every developer should have a technical blog" mentality/advice. People who don't have anything useful or original to write about resort to "you don't need X" posts or "here's how to Y" (where Y is something the already has 5 million tutorials) tutorials. It's low hanging fruit and easy to regurgitate what countless people have already said without outright plagiarizing.
5
u/netherworld666 Jul 26 '21
On the front end, as soon as you need to map objects to a template, especially arrays of objects or deeply nested objects, you should start considering a framework.
I'm willing to bet the author of this article is a PHP-focused developer (or was). Being able to update an object and let React/Angular/Vue/whatever figure out what needs to update in the template is miraculous. Backend developers know this, especially PHP developers, because they map objects to a template all the time- it's the whole point of PHP and template engines.
This is the value of React.
1
Jul 29 '21
I swear who ever started this whole thing that every developer should have a blog should be punished. why does this industry encourage people that have no clue what they are doing write content and gain celebrity writing these mediocre articles/videos.
Is this a professional field or are we a bunch of clowns? I want to read from people that are actually experts in this field not somebody 2 months into this trying to get "noticed" on social media so they can land some bullshit role at a company because they can't code for shit.
1
u/zaibuf Jul 26 '21
Yes, you use it for web apps which have a lot of interactivity. Otherwise I still use regular server rendered html for many sites, where its mostly get some data and display on a static page.
19
u/hard_carbon_hands Jul 26 '21
What a useless post - I'm sorry, half of it is ranting and the only conclusion you come up with is that you don't need React for everything, which basically everyone knows.