Refactor, tweaks, clean-up, improve

This commit is contained in:
Melvin Valster
2019-07-24 23:27:23 +02:00
parent 36742ea22e
commit e021dea1ab
16 changed files with 258 additions and 130 deletions
+9 -3
View File
@@ -1,8 +1,8 @@
import React from 'react'
import './App.scss'
import { IndexRoute } from './components/IndexRoute'
import { PlaygroundRoute } from './components/PlaygroundRoute'
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'
import { Playground } from './components/Playground'
import { BrowserRouter as Router, Route, Switch, Link } from 'react-router-dom'
const App: React.FC = () => {
return (
@@ -10,9 +10,15 @@ const App: React.FC = () => {
{/* <Router basename={process.env.NODE_ENV !== 'development' ? '%PUBLIC_URL%' : ''}> */}
<div className="App">
<Switch>
<Route exact path="/playground" component={PlaygroundRoute} />
<Route exact path="/playground" component={Playground} />
<Route path="/:selectedClass?/:pointString?" component={IndexRoute} />
</Switch>
<footer>
<Link to="/">Home</Link>
{' - '}
<Link to="/playground">Components</Link>
</footer>
</div>
</Router>
);