1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2025-01-05 11:25:00 +01:00
portfolio/src/Routes.js

14 lines
322 B
JavaScript
Raw Normal View History

2018-03-18 20:39:18 +01:00
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