Skip to content

Commit 9fdce9b

Browse files
committed
Update script source path in index.html to reference main.js instead of main.jsx
1 parent f089f6f commit 9fdce9b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
</head>
88
<body>
99
<div id="root"></div>
10-
<script type="module" src="./src/main.jsx"></script>
10+
<script type="module" src="./src/main.js"></script>
1111
</body>
1212
</html>

src/main.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from 'react';
2+
import ReactDOM from 'react-dom/client';
3+
import App from './App.js';
4+
import './index.css';
5+
6+
ReactDOM.createRoot(document.getElementById('root')).render(
7+
<React.StrictMode>
8+
<App />
9+
</React.StrictMode>
10+
);

0 commit comments

Comments
 (0)