News for hackers. Stuff that matters.
Re:Using const/let instead of var can make JavaScript code r... by acemarke on Wednesday October 21, 2020 @01:49AM (#24845099)
React and web components are different tools trying to solve different problems.

Web components are primarily about trying to add new virtual HTML tags to "extend the platform".

React and other frameworks are about trying to build interactive applications that require larger-scale UI management, efficiently, on top of the DOM, by defining pieces of that UI as a tree of reusable components (and using techniques that web components don't have available to them).

If I want to add a color picker to an otherwise static HTML page, I might use a color picker web component.

If I want to build a meaningful-sized app, I'd reach for React.

There are no comments on this comment yet.