I am implementing a template with reactjs, but the footer gets to break, it should be at the bottom.
The main <div id="root"></div> causing this. Can anyone know how to avoid it?
import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Switch} from 'react-router-dom';
/**
* Import Custom Component
*/
import MainLayout from "./components/layout/MainLayout";
import ErrorPage from "./components/pages/errors/ErrorPage";
/**
* Import the Pages Here
*/
import Home from "./components/pages/app/Home";
class App extends Component{
constructor() {
super();
console.log("Application Started");
}
render(){
return(
<>
<Router>
<Switch>
<MainLayout path="/" exact component={Home} />
<Route component={ErrorPage}></Route>
</Switch>
</Router>
</>
);
};
}
export default App;
