mirror of
https://github.com/kremalicious/portfolio.git
synced 2025-01-03 10:25:00 +01:00
14 lines
322 B
JavaScript
14 lines
322 B
JavaScript
import React from 'react'
|
|
import { Route, Switch } from 'react-router-dom'
|
|
import Home from './components/pages/Home'
|
|
import NotFound from './components/pages/NotFound'
|
|
|
|
const Routes = () => (
|
|
<Switch>
|
|
<Route exact component={Home} path="/" />
|
|
<Route component={NotFound} />
|
|
</Switch>
|
|
)
|
|
|
|
export default Routes
|