Rewrite frontend using create-react-app
This commit is contained in:
20
client/App.js
Normal file
20
client/App.js
Normal file
@ -0,0 +1,20 @@
|
||||
import React from 'react'
|
||||
import { HashRouter as Router, Switch, Route } from 'react-router-dom'
|
||||
import Layout from './Layout'
|
||||
import About from './About'
|
||||
import Stats from './Stats'
|
||||
import Home from './Home'
|
||||
|
||||
const App = () => (
|
||||
<Router>
|
||||
<Layout>
|
||||
<Switch>
|
||||
<Route path="/stats" component={Stats}/>
|
||||
<Route path="/about" component={About}/>
|
||||
<Route path="/" component={Home}/>
|
||||
</Switch>
|
||||
</Layout>
|
||||
</Router>
|
||||
)
|
||||
|
||||
export default App
|
Reference in New Issue
Block a user