diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-01-07 12:54:34 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-01-07 12:54:34 +0300 |
| commit | ad3762495bd7122623a64fd5c660024b1922c56d (patch) | |
| tree | 0ff4f37f7cbcf4d9f947adf7b55dc6038c4aac8b /frontend/src/App.tsx | |
| parent | what the fuck is this mess (#21) (diff) | |
| download | lphub-ad3762495bd7122623a64fd5c660024b1922c56d.tar.gz lphub-ad3762495bd7122623a64fd5c660024b1922c56d.tar.bz2 lphub-ad3762495bd7122623a64fd5c660024b1922c56d.zip | |
switch to react
Diffstat (limited to 'frontend/src/App.tsx')
| -rw-r--r-- | frontend/src/App.tsx | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx new file mode 100644 index 0000000..cd20136 --- /dev/null +++ b/frontend/src/App.tsx | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | import { useState } from 'react' | ||
| 2 | import reactLogo from './assets/react.svg' | ||
| 3 | import './App.css' | ||
| 4 | |||
| 5 | function App() { | ||
| 6 | const [count, setCount] = useState(0) | ||
| 7 | |||
| 8 | return ( | ||
| 9 | <div className="App"> | ||
| 10 | <div> | ||
| 11 | <a href="https://vitejs.dev" target="_blank"> | ||
| 12 | <img src="/vite.svg" className="logo" alt="Vite logo" /> | ||
| 13 | </a> | ||
| 14 | <a href="https://reactjs.org" target="_blank"> | ||
| 15 | <img src={reactLogo} className="logo react" alt="React logo" /> | ||
| 16 | </a> | ||
| 17 | </div> | ||
| 18 | <h1>Vite + React</h1> | ||
| 19 | <div className="card"> | ||
| 20 | <button onClick={() => setCount((count) => count + 1)}> | ||
| 21 | count is {count} | ||
| 22 | </button> | ||
| 23 | <p> | ||
| 24 | Edit <code>src/App.tsx</code> and save to test HMR | ||
| 25 | </p> | ||
| 26 | </div> | ||
| 27 | <p className="read-the-docs"> | ||
| 28 | Click on the Vite and React logos to learn more | ||
| 29 | </p> | ||
| 30 | </div> | ||
| 31 | ) | ||
| 32 | } | ||
| 33 | |||
| 34 | export default App | ||