mirror of
https://github.com/facebook/react.git
synced 2026-02-26 07:55:55 +00:00
16 lines
266 B
JavaScript
16 lines
266 B
JavaScript
// @instrumentForget @compilationMode(annotation)
|
|
|
|
function Bar(props) {
|
|
"use forget";
|
|
return <div>{props.bar}</div>;
|
|
}
|
|
|
|
function NoForget(props) {
|
|
return <Bar>{props.noForget}</Bar>;
|
|
}
|
|
|
|
function Foo(props) {
|
|
"use forget";
|
|
return <Foo>{props.bar}</Foo>;
|
|
}
|