Why does React JSX not support HTML5 entity names?

466 Views Asked by At

As shown in this code here, and noted here, only HTML4 character entities are supported within literal text in JSX.

Why are HTML5 entity names not supported? Specifying the names of any of the new HTML5 character entities within literal text in JSX like this

<div>&num;</div>

does not work.

0

There are 0 best solutions below