Skip to content
On this page

What about React?

Short answer: Yes-ish and the situation may be getting better in React 19.

React –due to its popularity– is a notable outlier in Custom Elements Everywhere support matrix that documents which JS frameworks. The tl;dr on the problem is that React treats attributes and properties the same but in HTML those are different, so there's potentially a breaking change needed to fix the issue.

But work is underway to support web components in React. 🙌

You can use them today with React component wrappers:

Licenced MIT