blob: 31b8b69bff338f9f9f352ed473efe0b9aa9d1215 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import React, { Component, Fragment } from 'react';
import { Switch, Route } from 'react-router-dom'
import CssBaseline from '@material-ui/core/CssBaseline';
import MainPage from './MainPage';
import LoginPage from './LoginPage';
class App extends Component {
render() {
return (
<Fragment>
<CssBaseline />
<Switch>
<Route exact path='/' component={MainPage} />
<Route exact path='/login' component={LoginPage} />
</Switch>
</Fragment>
);
}
}
export default App;
|