File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import Navbar from './components/Navbar' ;
3
+ import { BrowserRouter as Router , Route , Routes } from 'react-router-dom' ;
4
+
1
5
import './App.css' ;
2
6
3
7
function App ( ) {
4
8
return (
5
- < div className = "App" >
6
- < h1 > Hello World</ h1 >
7
- </ div >
9
+ < >
10
+ < Router >
11
+ < Navbar />
12
+ < Routes >
13
+ < Route path = '/' />
14
+ </ Routes >
15
+ </ Router >
16
+ </ >
8
17
) ;
9
18
}
10
19
Original file line number Diff line number Diff line change 1
1
import React , { useState } from 'react'
2
+ import { Link } from 'react-router-dom'
2
3
3
4
function Navbar ( ) {
4
5
return (
5
6
< >
6
7
< nav className = "navbar" >
7
8
< div className = "navbar-container" >
8
-
9
+ < Link to = "/" className = "navbar-logo" >
10
+ TRVL < i className = "fab fa-typo3" > </ i >
11
+ </ Link >
9
12
</ div >
10
13
</ nav >
11
14
</ >
You can’t perform that action at this time.
0 commit comments