Open
Description
What kind of issue is this?
- React Compiler core (the JS output is incorrect, or your app works incorrectly after optimization)
- babel-plugin-react-compiler (build issue installing or using the Babel plugin)
- eslint-plugin-react-compiler (build issue installing or using the eslint plugin)
- react-compiler-healthcheck (build issue installing or using the healthcheck script)
Link to repro
Repro steps
When passing a unicode character as a prop, like <MyComponent text="welcome π" />
then in RC output code we can see <MyComponent text="welcome \uD83D\uDC4B" />
- unicode character gets replaced by "stringified" UTF-16 representation of it.
Expected result (on the screen)
Welcome π
Actual result:
Welcome \uD83D\uDC4B
How often does this bug happen?
Every time
What version of React are you using?
19.1
What version of React Compiler are you using?
19.0.0-beta-ebf51a3-20250411