-
-
Notifications
You must be signed in to change notification settings - Fork 144
/
Copy pathApp.tsx
57 lines (53 loc) · 1.29 KB
/
App.tsx
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import React, { useState } from 'react'
import ReactLogo from '~icons/logos/react'
import RawReactLogo from '~icons/logos/react?raw'
import './App.css'
function _a() {
return <svg />
}
function App() {
const [count, setCount] = useState(0)
return (
<div className="App">
<header className="App-header">
<ReactLogo style={{ fontSize: '3em' }} />
<span dangerouslySetInnerHTML={{ __html: RawReactLogo }}></span>
<p>Hello Vite + React!</p>
<p>
<button type="button" onClick={() => setCount(count => count + 1)}>
count is:
{' '}
{count}
</button>
</p>
<p>
Edit
{' '}
<code>App.tsx</code>
{' '}
and save to test HMR updates.
</p>
<p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
{' | '}
<a
className="App-link"
href="https://vitejs.dev/guide/features.html"
target="_blank"
rel="noopener noreferrer"
>
Vite Docs
</a>
</p>
</header>
</div>
)
}
export default App