mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix missing playground snapshot
ghstack-source-id: f2c8a542b525ab8c91beaad6327c128a96d122f6 Pull Request resolved: https://github.com/facebook/react-forget/pull/2827
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
function MyApp() {
|
||||
const $ = useMemoCache(1);
|
||||
let t0;
|
||||
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
||||
t0 = <div>Hello World</div>;
|
||||
$[0] = t0;
|
||||
} else {
|
||||
t0 = $[0];
|
||||
}
|
||||
return t0;
|
||||
}
|
||||
Reference in New Issue
Block a user