Last active
November 24, 2017 19:43
-
-
Save nomanHasan/d8e46704936085f28e91a637369854d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { BrowserRouter, Switch, Route, Link } from 'react-router-dom' | |
// The Todo Container Component | |
import TodoContainer from './todos/containers/todoContainer' | |
// The Routing Component providing all the routing Configuration | |
const Routes = (props) => { | |
return ( | |
<BrowserRouter> | |
<Switch> | |
{/* It's setup at the default index route */} | |
<Route path="/" component={TodoContainer} /> | |
</Switch> | |
</BrowserRouter> | |
) | |
} | |
export { Routes } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment