Fist setup js

This commit is contained in:
frits000000
2020-11-20 10:43:23 +01:00
parent 8bd07dc209
commit 55b7b765eb
25 changed files with 182 additions and 181 deletions
@@ -0,0 +1,39 @@
//Modules
import React from "react";
import {
BrowserRouter as Router,
Switch,
Route,
Link
} from "react-router-dom";
//Main routes
import {HomePage} from '../';
//Sub routes
class GlobalRouter extends React.Component {
constructor(props) {
super(props)
this.state = {
errorlog: [],
clear: 'clear'
}
}
render() {
return (
<Router>
<Switch>
<Route exact path="/" component={HomePage} />
</Switch>
</Router>
);
}
}
export default GlobalRouter;