mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Currently the playground is setup as a linked workspace for the
compiler which complicates our yarn workspace setup and means that snap
can sometimes pull in a different version of react than was otherwise
specified.
There's no real reason to have these workspaces combined so let's split
them up.
ghstack-source-id: 56ab064b2f
Pull Request resolved: https://github.com/facebook/react/pull/31081
48 lines
1.3 KiB
TypeScript
48 lines
1.3 KiB
TypeScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
import '../styles/globals.css';
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}): JSX.Element {
|
|
'use no memo';
|
|
return (
|
|
<html lang="en">
|
|
<head>
|
|
<title>
|
|
{process.env.NODE_ENV === 'development'
|
|
? '[DEV] React Compiler Playground'
|
|
: 'React Compiler Playground'}
|
|
</title>
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"></meta>
|
|
<link rel="icon" href="/favicon.ico" />
|
|
<link rel="manifest" href="/site.webmanifest" />
|
|
<link
|
|
rel="preload"
|
|
href="/fonts/Source-Code-Pro-Regular.woff2"
|
|
as="font"
|
|
type="font/woff2"
|
|
crossOrigin="anonymous"
|
|
/>
|
|
<link
|
|
rel="preload"
|
|
href="/fonts/Optimistic_Display_W_Lt.woff2"
|
|
as="font"
|
|
type="font/woff2"
|
|
crossOrigin="anonymous"
|
|
/>
|
|
</head>
|
|
<body className="font-sans h-screen overflow-y-hidden">{children}</body>
|
|
</html>
|
|
);
|
|
}
|