Skip to content

Instantly share code, notes, and snippets.

@nomanHasan
Last active November 24, 2017 19:43
Show Gist options
  • Save nomanHasan/d8e46704936085f28e91a637369854d0 to your computer and use it in GitHub Desktop.
Save nomanHasan/d8e46704936085f28e91a637369854d0 to your computer and use it in GitHub Desktop.
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