Created
September 3, 2018 21:23
-
-
Save IchrakMansour/48a67ac5a191328f7f96b0c896f04d85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { HashRouter, Route, Switch } from 'react-router-dom'; | |
import './App.css'; | |
import '@coreui/icons/css/coreui-icons.min.css'; | |
import 'flag-icon-css/css/flag-icon.min.css'; | |
import 'font-awesome/css/font-awesome.min.css'; | |
import 'simple-line-icons/css/simple-line-icons.css'; | |
import './scss/style.css' | |
import { DefaultLayout } from './containers'; | |
import { Login, Page404, Page500, Register} from './views/Pages'; | |
class App extends Component { | |
render() { | |
return ( | |
<HashRouter> | |
<Switch> | |
<Route exact path="/login" name="Login Page" component={Login} /> | |
<Route exact path="/register" name="Register Page" component={Register} /> | |
<Route exact path="/404" name="Page 404" component={Page404} /> | |
<Route exact path="/500" name="Page 500" component={Page500} /> | |
<Route path="/" name="Home" component={DefaultLayout} /> | |
</Switch> | |
</HashRouter> | |
); | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment