Created
October 7, 2017 03:47
-
-
Save tkssharma/2d4baee82f8e3e7d9ff46fd86355e89e 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
<BrowserRouter> | |
<div> | |
<ul> | |
<li><NavLink to="/" activeClassName="active">Home</NavLink></li> | |
<li><NavLink to="/basic-routing" activeClassName="active">BasicRouting</NavLink></li> | |
<li><NavLink to="/blocking" activeClassName="active">Blocking</NavLink></li> | |
<li><NavLink to="/miss" activeClassName="active">Miss</NavLink></li> | |
<li><NavLink to="/query-params" activeClassName="active">Query Params</NavLink></li> | |
<li><NavLink to="/recursive-paths" activeClassName="active">Recursive Paths</NavLink></li> | |
</ul> | |
<Switch> | |
<Route path="/" component={Home} exact={true} /> | |
<Route path="/basic-routing" component={BasicRouting} /> | |
<Route path="/blocking" component={Blocking} /> | |
<Route path="/miss" component={Miss} /> | |
<Route path="/query-params" component={QueryParams} /> | |
<Route path="/recursive-paths" component={Recursive} /> | |
<Route component={NoMatch}/> | |
</Switch> | |
</div> | |
</BrowserRouter> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment