File tree 7 files changed +74
-0
lines changed
7 files changed +74
-0
lines changed Original file line number Diff line number Diff line change
1
+ # expr
2
+
3
+ [ Edit on StackBlitz ⚡️] ( https://stackblitz.com/edit/stackblitz-starters-w7ey78 )
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " stackblitz-starters-w7ey78" ,
3
+ "version" : " 0.0.0" ,
4
+ "private" : true ,
5
+ "dependencies" : {
6
+ "react" : " 18.2.0" ,
7
+ "react-dom" : " 18.2.0" ,
8
+ "@types/react" : " 18.2.21" ,
9
+ "@types/react-dom" : " 18.2.7"
10
+ },
11
+ "scripts" : {
12
+ "start" : " react-scripts start" ,
13
+ "build" : " react-scripts build" ,
14
+ "test" : " react-scripts test --env=jsdom" ,
15
+ "eject" : " react-scripts eject"
16
+ },
17
+ "devDependencies" : {
18
+ "react-scripts" : " latest"
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ < div id ="app "> </ div >
Original file line number Diff line number Diff line change
1
+ import { FC } from 'react' ;
2
+
3
+ import './style.css' ;
4
+
5
+ export const App : FC < { name : string } > = ( { name } ) => {
6
+ return (
7
+ < div >
8
+ < h1 > Hello { name } !</ h1 >
9
+ < p > Start editing to see some magic happen :)</ p >
10
+ </ div >
11
+ ) ;
12
+ } ;
Original file line number Diff line number Diff line change
1
+ import { StrictMode } from 'react' ;
2
+ import { createRoot } from 'react-dom/client' ;
3
+
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 >
12
+ ) ;
Original file line number Diff line number Diff line change
1
+ * {
2
+ box-sizing : border-box;
3
+ }
4
+
5
+ body {
6
+ margin : 0 ;
7
+ padding : 1rem ;
8
+ font-family : system-ui, sans-serif;
9
+ color : black;
10
+ background-color : white;
11
+ }
12
+
13
+ h1 {
14
+ font-weight : 800 ;
15
+ font-size : 1.5rem ;
16
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "compilerOptions" : {
3
+ "jsx" : " react-jsx" ,
4
+ "lib" : [" DOM" , " ES2022" ],
5
+ "moduleResolution" : " node" ,
6
+ "target" : " ES2022" ,
7
+ "strict" : true ,
8
+ "baseUrl" : " ./src"
9
+ }
10
+ }
You can’t perform that action at this time.
0 commit comments