Skip to content

Commit eb6e276

Browse files
committed
mui setup
1 parent e71f0a7 commit eb6e276

File tree

6 files changed

+273
-103
lines changed

6 files changed

+273
-103
lines changed

index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<link
8+
rel="stylesheet"
9+
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
10+
/>
711
<title>Vite App</title>
812
</head>
913
<body>

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"build-storybook": "build-storybook"
1111
},
1212
"dependencies": {
13+
"@emotion/react": "^11.9.0",
14+
"@emotion/styled": "^11.8.1",
15+
"@mui/material": "^5.8.2",
1316
"react": "^18.0.0",
1417
"react-dom": "^18.0.0"
1518
},

src/App.css

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/App.jsx

Lines changed: 6 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,8 @@
1-
import { useState } from 'react'
2-
import logo from './logo.svg'
3-
import './App.css'
1+
import * as React from "react";
2+
import Button from "@mui/material/Button";
43

5-
function App() {
6-
const [count, setCount] = useState(0)
4+
const App = () => {
5+
return <Button variant="contained">Hello World</Button>;
6+
};
77

8-
return (
9-
<div className="App">
10-
<header className="App-header">
11-
<img src={logo} className="App-logo" alt="logo" />
12-
<p>Hello Vite + React!</p>
13-
<p>
14-
<button type="button" onClick={() => setCount((count) => count + 1)}>
15-
count is: {count}
16-
</button>
17-
</p>
18-
<p>
19-
Edit <code>App.jsx</code> and save to test HMR updates.
20-
</p>
21-
<p>
22-
<a
23-
className="App-link"
24-
href="https://reactjs.org"
25-
target="_blank"
26-
rel="noopener noreferrer"
27-
>
28-
Learn React
29-
</a>
30-
{' | '}
31-
<a
32-
className="App-link"
33-
href="https://vitejs.dev/guide/features.html"
34-
target="_blank"
35-
rel="noopener noreferrer"
36-
>
37-
Vite Docs
38-
</a>
39-
</p>
40-
</header>
41-
</div>
42-
)
43-
}
44-
45-
export default App
8+
export default App;

src/logo.svg

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)