Commit c41e03b2 authored by s8_vaitku_e's avatar s8_vaitku_e
Browse files

Update App.js

parent d22a0010
import { Switch, Route, Link } from 'react-router-dom';
import { BrowserRouter as Router } from 'react-router-dom';
import Examples from './templates/Game';
import Game from './templates/Game';
import Home from './templates/Home';
import './App.scss';
......@@ -11,13 +12,29 @@ function App() {
<nav>
<ul>
<li>
<Link to="/">React</Link>
<Link to="/Home">Sakums</Link>
</li>
<li>
<Link to="/Game">Game</Link>
<Link to="/Game">Spele</Link>
</li>
</ul>
</nav>
<Switch>
<Route exact path="/Home">
<Home />
</Route>
<Route exact path="/Game">
<Game />
</Route>
</Switch>
<footer>
<p>Elvis Vaitkus @s8_vaitku_e</p>
</footer>
</Router>
</div>
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment