3 ms·
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 "ext
by acemarke 6y ago
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.