1
Fork 0
react-template/index.html

26 lines
655 B
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div id="root"></div>
<script type="module">
import React from "react";
import { createRoot } from "react-dom/client";
import App from "./src/client/app.jsx";
createRoot(document.getElementById("root")).render(
React.createElement(
React.StrictMode,
null,
React.createElement(App, null),
),
);
</script>
</body>
</html>