-
-
Notifications
You must be signed in to change notification settings - Fork 98
/
App.jsx
40 lines (37 loc) · 876 Bytes
/
App.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { useState } from 'react'
import _Switch from 'react-switch'
import { Counter, StyledCode } from './Counter'
const Switch = _Switch.default || _Switch
function FragmentTest() {
const [checked, setChecked] = useState(false)
return (
<>
<Switch checked={checked} onChange={setChecked} />
<p>
<Counter />
</p>
</>
)
}
function App() {
return (
<div className="App">
<header className="App-header">
<h1>Hello Vite + React + @emotion/react</h1>
<FragmentTest />
<p>
Edit <StyledCode>App.jsx</StyledCode> and save to test HMR updates.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
)
}
export default App