Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Use a Symbol to tag every ReactElement #4832
I tag each React element with
However, this has limitations since it doesn't work with value types which
Additionally, it is our hope that ReactElement will one day be specified in
This Value Types proposal by @nikomatsakis is currently on hold but does satisfy all these requirements:
Additionally, there is already a system for coordinating tags across module
Currently these objects are not able to transfer between Workers but there is
The fallback solution is a plain well-known number. This makes it unsafe with
In short, if you want the XSS protection, use a proper Symbol polyfill.
Finally, the reason for calling it