mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
* Facebook -> Meta in copyright rg --files | xargs sed -i 's#Copyright (c) Facebook, Inc. and its affiliates.#Copyright (c) Meta Platforms, Inc. and affiliates.#g' * Manual tweaks
35 lines
923 B
JavaScript
35 lines
923 B
JavaScript
/**
|
|
* 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.
|
|
*
|
|
*/
|
|
|
|
export default function Html({assets, children, title}) {
|
|
return (
|
|
<html lang="en">
|
|
<head>
|
|
<meta charSet="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<link rel="shortcut icon" href="favicon.ico" />
|
|
<link rel="stylesheet" href={assets['main.css']} />
|
|
<title>{title}</title>
|
|
</head>
|
|
<body>
|
|
<noscript
|
|
dangerouslySetInnerHTML={{
|
|
__html: `<b>Enable JavaScript to run this app.</b>`,
|
|
}}
|
|
/>
|
|
{children}
|
|
<script
|
|
dangerouslySetInnerHTML={{
|
|
__html: `assetManifest = ${JSON.stringify(assets)};`,
|
|
}}
|
|
/>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|