Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
Instead of using <div> tag as the root, using <main> is slightly better in terms of semantics and accessibility.
  • Loading branch information
ShayokhShorfuddin authored Dec 10, 2024
1 parent ae66bd1 commit 37a65eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-vite/template-react/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>Vite + React</title>
</head>
<body>
<div id="root"></div>
<main id="root"></main>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>

0 comments on commit 37a65eb

Please sign in to comment.