-
Notifications
You must be signed in to change notification settings - Fork 50.7k
Open
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug
Description
When using React Compiler on this component:
export default function MyApp() {
return (
<div>
 
<span>hello world</span>
</div>
);
}the HTML entity gets removed with compiler:
import { c as _c } from "react/compiler-runtime";
export default function MyApp() {
const $ = _c(1);
let t0;
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
t0 = (
<div>
<span>hello world</span>
</div>
);
$[0] = t0;
} else {
t0 = $[0];
}
return t0;
}React version: 19.2.4
Steps To Reproduce
The current behavior
HTML entity is removed.
The expected behavior
HTML entity should be kept as-is.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug