Skip to content

Commit 35cfd6c

Browse files
committed
seperate HTMl from react code
1 parent e344f90 commit 35cfd6c

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

src/main.jsx

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>My Nix Web App</title>
7-
</head>
8-
<body>
9-
<div id="root"></div>
10-
<script type="module" src="/src/main.jsx"></script>
11-
</body>
12-
</html>
1+
import React from 'react'
2+
import ReactDOM from 'react-dom/client'
3+
import App from './App'
4+
5+
ReactDOM.createRoot(document.getElementById('root')).render(
6+
<React.StrictMode>
7+
<App />
8+
</React.StrictMode>
9+
)

0 commit comments

Comments
 (0)