Created
March 20, 2019 18:15
-
-
Save jaysoo/0ca0beaa89d01fc98ff87bcdd385d705 to your computer and use it in GitHub Desktop.
This file contains 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
// apps/my-app/src/app/app.tsx | |
import * as React from 'react'; | |
import { BrowserRouter, Route, Link } from 'react-router-dom'; | |
import { Home } from '@my-app/home'; | |
import './app.scss'; | |
export const App = () => ( | |
<BrowserRouter> | |
<div className="app"> | |
<nav className="app-nav"> | |
<ul> | |
<li> | |
<Link to="/">Home</Link> | |
</li> | |
</ul> | |
</nav> | |
<div className="app-content"> | |
<Route path="/" exact component={Home} /> | |
</div> | |
</div> | |
</BrowserRouter> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment