Skip to content

Instantly share code, notes, and snippets.

View argodeep's full-sized avatar
🌐
Javascript & Product Ethusiasts

Arghyadeep Majumder argodeep

🌐
Javascript & Product Ethusiasts
View GitHub Profile
@argodeep
argodeep / app.tsx
Last active June 26, 2020 14:39
React Functional Component
// Functional compoennt
function App() {
return (
<Fragment>
<Router>
<Switch>
<Route path="/list" exact={true} component={List} />
<Route path="/list/:id" exact={true} component={View} />
<Redirect from="/" to="/list" />
<Route path="*" exact={true} component={List} />