Skip to content

Commit 5fd26f1

Browse files
committed
3 files modified, 1 added, 2 deleted
1 parent 2b0827d commit 5fd26f1

File tree

6 files changed

+22
-44
lines changed

6 files changed

+22
-44
lines changed

package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
2-
"name": "stackblitz-starters-w7ey78",
2+
"name": "expr",
33
"version": "0.0.0",
44
"private": true,
55
"dependencies": {
6-
"react": "18.2.0",
7-
"react-dom": "18.2.0",
86
"@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"
1010
},
11+
"type": "module",
1112
"scripts": {
1213
"start": "react-scripts start",
1314
"build": "react-scripts build",
@@ -17,4 +18,4 @@
1718
"devDependencies": {
1819
"react-scripts": "latest"
1920
}
20-
}
21+
}

src/App.tsx

-12
This file was deleted.

src/Main.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import React from "react";
2+
3+
export default function App(): React.ReactElement {
4+
return <h1>hi</h1>;
5+
}

src/index.tsx

+7-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
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";
34

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>
129
);

src/style.css

-16
This file was deleted.

tsconfig.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
"moduleResolution": "node",
66
"target": "ES2022",
77
"strict": true,
8-
"baseUrl": "./src"
8+
"baseUrl": "./src",
9+
"paths": {
10+
"@components/*": ["components/*"]
11+
}
912
}
1013
}

0 commit comments

Comments
 (0)