try to get it working

This commit is contained in:
2025-07-02 17:06:32 +02:00
parent 64605f6f92
commit 75da3cceb9
2 changed files with 10 additions and 5 deletions

View File

@@ -1,11 +1,16 @@
import './App.css'
import navbar from "./components/navbar.tsx";
import Navbar from "./components/Navbar.tsx";
import {BrowserRouter} from "react-router-dom";
function App() {
return (
navbar()
)
return (
<BrowserRouter>
<div>
<Navbar/>
</div>
</BrowserRouter>
)
}
export default App

View File

@@ -1,7 +1,7 @@
import {NavLink} from 'react-router-dom'
import '../styles/navbar.css'
export default function navbar() {
export default function Navbar() {
return (
<nav className="navbar flex gap-4">
<NavLink to={"/"} className="navbar-left flex item-center gap-2">Home</NavLink>