updated folder structure

This commit is contained in:
andres alcocer
2021-10-07 10:51:00 -04:00
parent f1e2619972
commit 7649d38a05
14 changed files with 79 additions and 117 deletions

20
src/AppRouter.js Normal file
View File

@@ -0,0 +1,20 @@
import React from 'react'
import { BrowserRouter, Route, Switch } from 'react-router-dom'
import Home from './pages/Home'
import NotFound from './pages/NotFound'
import Search from './pages/Search'
import Navbar from './components/Navbar'
const AppRouter = () => (
<BrowserRouter>
<Navbar />
<Switch>
<Route path='/' exact component={Home} />
<Route path='/search' component={Search} />
<Route component={NotFound} />
</Switch>
</BrowserRouter>
)
export default AppRouter