mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-20 06:18:57 +00:00
new examples
This commit is contained in:
20
node/react/src/App.tsx
Normal file
20
node/react/src/App.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import { Routes, Route, Link } from 'react-router-dom'
|
||||
import Home from './pages/Home'
|
||||
import About from './pages/About'
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<div id="app">
|
||||
<nav style={{ padding: '20px' }}>
|
||||
<Link to="/" style={{ marginRight: '10px' }}>Home</Link>
|
||||
<Link to="/about">About</Link>
|
||||
</nav>
|
||||
<Routes>
|
||||
<Route path="/" element={<Home />} />
|
||||
<Route path="/about" element={<About />} />
|
||||
</Routes>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default App
|
||||
Reference in New Issue
Block a user