import React from 'react' ; import { BrowserRouter , Switch , Route } from 'react-router-dom' ; import { Navbar } from './components/Navbar' ; import { About } from './pages/About' ; import { Home } from './pages/Home' ; const App = ( ) => { return ( < BrowserRouter > < Navbar /> < div className = "container" > < Switch > < Route path = "/" component = { Home } exact / > < Route path = "/about" component = { About } / > < /Switch> < /div> < /BrowserRouter>); } ; export default App ;