summaryrefslogtreecommitdiffhomepage
path: root/frontend/src/App.tsx
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-07-23 21:47:52 -0400
committerrealtradam <[email protected]>2024-07-23 21:47:52 -0400
commite36832834564f401622ef293c19fc778ab43f9ae (patch)
tree9752556936c71336e01f2c0b9f53dc9cdfbd32dd /frontend/src/App.tsx
parent1e18e0ad7a47536be92384bbf815e0923a06698d (diff)
downloadspring-blog-e36832834564f401622ef293c19fc778ab43f9ae.tar.gz
spring-blog-e36832834564f401622ef293c19fc778ab43f9ae.zip
implement initial react frontend
Diffstat (limited to 'frontend/src/App.tsx')
-rw-r--r--frontend/src/App.tsx36
1 files changed, 3 insertions, 33 deletions
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
index afe48ac..92de410 100644
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@ -1,35 +1,5 @@
-import { useState } from 'react'
-import reactLogo from './assets/react.svg'
-import viteLogo from '/vite.svg'
-import './App.css'
+import Routes from "./routes"
-function App() {
- const [count, setCount] = useState(0)
-
- return (
- <>
- <div>
- <a href="https://vitejs.dev" target="_blank">
- <img src={viteLogo} className="logo" alt="Vite logo" />
- </a>
- <a href="https://react.dev" target="_blank">
- <img src={reactLogo} className="logo react" alt="React logo" />
- </a>
- </div>
- <h1>Vite + React</h1>
- <div className="card">
- <button onClick={() => setCount((count) => count + 1)}>
- count is {count}
- </button>
- <p>
- Edit <code>src/App.tsx</code> and save to test HMR
- </p>
- </div>
- <p className="read-the-docs">
- Click on the Vite and React logos to learn more
- </p>
- </>
- )
+export default function App() {
+ return (<Routes />);
}
-
-export default App