DEV Community

Discussion on: Stop Using React

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
thefern profile image
Fernando B 🚀

Honestly I thought this was a troll post, hence my sarcastic response.

I hear what you are saying, but none of these issues have anything to do with react if you really want to get to the core of the real issues. You can literally pick any tool, framework, corporation and replace React in this article.

It sounds like you want to fight inequality in the type of access some people have, and that's cool, but again nothing to do with React.

Personally I like React because coming from the backend, I like how you can build modular components just with React without having to use backend like php with modular html structure. If html offered a nice way to import html files then it would be a different story, but the current way of importing another html file is kinda cumbersome.

Besides that is nice to have components with all the gui, and logic together this is something you can't really do with plain html, or without using a good framework.

I can go on and on, but seems like you only care about one thing which is something I don't have an answer. All I can say is that's your mad at the wrong thing.

Thread Thread
 
ender_minyard profile image
ender minyard • Edited
If html offered a nice way to import html files then it would be a different story

HTML modularity: webcomponents.dev/

There actually are frameworks, like Preact, that actually don't have the issues that React has. So no, you can't "literally pick any tool, framework, corporation and replace React in this article". I understand you like React, but you can accept that it is flawed and still like it :-)

Thread Thread
 
thefern profile image
Fernando B 🚀 • Edited

If gaining 40Kb makes you happy, then so be it. They're only flaws to you, not me. Different perspectives. 😁

I'll definitely check out preact though.

Thread Thread
 
djdev profile image
Deepjyoti Rajkhowa

@ender minyard - the HTML imports link you shared has this line at the top, in red - "HTML Imports are deprecated and was removed from Chrome in February 2020."

Thread Thread
 
thefern profile image
Fernando B 🚀

I think most browsers didn't even support that. Even if it worked I didn't like it too much. First you had to import html, then you had this ugly code to actually use it. What I was referring is something like in php. Where you create an html section for the header in one php file. And call it from index.php. This is where plain html comes short and frameworks pick up the slack.

Some comments have been hidden by the post's author - find out more