mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
4c4b5dcb6f0deb669916fcc7119bd9fbb78d3250
If a JSX attribute value is a string that contains unicode or other characters that need special escaping, we wrap the attribute value in an expression container. However, our unicode to detect this only handled the basic unicode character plane, not the "astral" plane which includes emojis. This PR updates the regex to detect such extended characters and also use an expression container. ghstack-source-id:6d9c8e4dd2Pull Request resolved: https://github.com/facebook/react/pull/33096 DiffTrain build for [ac2cae5245](https://github.com/facebook/react/commit/ac2cae524576b8091a6d78d9ab05627053949df1)
react-fbsource-import
Description
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%