File tree 6 files changed +22
-44
lines changed
6 files changed +22
-44
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " stackblitz-starters-w7ey78 " ,
2
+ "name" : " expr " ,
3
3
"version" : " 0.0.0" ,
4
4
"private" : true ,
5
5
"dependencies" : {
6
- "react" : " 18.2.0" ,
7
- "react-dom" : " 18.2.0" ,
8
6
"@types/react" : " 18.2.21" ,
9
- "@types/react-dom" : " 18.2.7"
7
+ "@types/react-dom" : " 18.2.7" ,
8
+ "react" : " 18.2.0" ,
9
+ "react-dom" : " 18.2.0"
10
10
},
11
+ "type" : " module" ,
11
12
"scripts" : {
12
13
"start" : " react-scripts start" ,
13
14
"build" : " react-scripts build" ,
17
18
"devDependencies" : {
18
19
"react-scripts" : " latest"
19
20
}
20
- }
21
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import React from "react" ;
2
+
3
+ export default function App ( ) : React . ReactElement {
4
+ return < h1 > hi</ h1 > ;
5
+ }
Original file line number Diff line number Diff line change 1
- import { StrictMode } from 'react' ;
2
- import { createRoot } from 'react-dom/client' ;
1
+ import React from "react" ;
2
+ import ReactDOM from "react-dom/client" ;
3
+ import App from "@components/Main" ;
3
4
4
- import { App } from './App' ;
5
-
6
- const root = createRoot ( document . getElementById ( 'app' ) ) ;
7
-
8
- root . render (
9
- < StrictMode >
10
- < App name = "StackBlitz" />
11
- </ StrictMode >
5
+ ReactDOM . createRoot ( document . getElementById ( "#app" ) ! ) . render (
6
+ < React . StrictMode >
7
+ < App />
8
+ </ React . StrictMode >
12
9
) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
"moduleResolution" : " node" ,
6
6
"target" : " ES2022" ,
7
7
"strict" : true ,
8
- "baseUrl" : " ./src"
8
+ "baseUrl" : " ./src" ,
9
+ "paths" : {
10
+ "@components/*" : [" components/*" ]
11
+ }
9
12
}
10
13
}
You can’t perform that action at this time.
0 commit comments