2019-05-23 19:19:54 +02:00
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
import './App.css';
|
|
|
|
|
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
|
|
|
|
|
import Home from './scenes/Home';
|
|
|
|
|
import NotFound from './scenes/NotFound';
|
|
|
|
|
|
|
|
|
|
class App extends Component {
|
|
|
|
|
render() {
|
|
|
|
|
return (
|
|
|
|
|
<Router>
|
|
|
|
|
<Switch>
|
|
|
|
|
<Route exact path="/" component={Home} />
|
|
|
|
|
<Route component={NotFound} />
|
|
|
|
|
</Switch>
|
|
|
|
|
</Router>
|
|
|
|
|
);
|
|
|
|
|
}
|
2019-05-23 18:36:24 +02:00
|
|
|
}
|
|
|
|
|
export default App;
|