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 258cdd6 commit ae66bd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-vite/template-react-ts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>Vite + React + TS</title>
</head>
<body>
<div id="root"></div>
<main id="root"></main>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>

0 comments on commit ae66bd1

Please sign in to comment.