10 ms·
I can't seem to find it now, but I remember seeing something a few months back about support for some HTML tag being added to react. I could be wrong about that
by jordanlev 12y ago
I can't seem to find it now, but I remember seeing something a few months back about support for some HTML tag being added to react. I could be wrong about that, though (which would be great). I guess my question is this: can React/JSX render any kind of well-formed arbitrary markup? Like if next week there is a <doohickey> html tag I want to use, will it work? Or would react have to be updated to "support it" somehow?
- danabramov 12y ago>I remember seeing something a few months back about support for some HTML tag being added to react. It's just due to React <=0.12 using an HTML tag whitelist to tell native tags from custom components. It's not an issue anymore in 0.13, where any HTML tag (including custom Web Components) will work: https://github.com/facebook/react/pull/2830 https://github.com/facebook/react/pull/2830 There's still an attribute whitelist, and that's a trickier problem to solve: https://github.com/facebook/react/issues/140 https://github.com/facebook/react/issues/140
- jordanlev 12y agoAh, that makes sense. Thanks!