20 lines
522 B
JavaScript
20 lines
522 B
JavaScript
|
|
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>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
export default App;
|