Skip to content

Commit

Permalink
Changes React root element ID.
Browse files Browse the repository at this point in the history
  • Loading branch information
mntone committed Jun 22, 2024
1 parent 4572295 commit 79d3f09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<div id="r"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import store, { persistor } from 'app/store'

initCollection()

const element = document.getElementById('root')
const element = document.getElementById('r')
if (element) {
const root = createRoot(element)
root.render(
Expand Down

0 comments on commit 79d3f09

Please sign in to comment.