Skip to content

Commit 2b0827d

Browse files
committed
Initial commit
0 parents  commit 2b0827d

File tree

7 files changed

+74
-0
lines changed

7 files changed

+74
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# expr
2+
3+
[Edit on StackBlitz ⚡️](https://stackblitz.com/edit/stackblitz-starters-w7ey78)

package.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
}

public/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div id="app"></div>

src/App.tsx

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
};

src/index.tsx

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
);

src/style.css

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
}

tsconfig.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+
}

0 commit comments

Comments
 (0)