DEV Community

Discussion on: Stop Using React

 
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