When I call my SideBar component in App.js it appears on top of everything with the main page under it and I understand why it does this but I don't know how to get it so that the sidebar appears to the left of the screen with the main app component it right next to it.
Here is my code:
const AppRoute=({component:Component, layout:Layout,...rest}) => { <Route {...rest} render = {props=> ( <Layout> <Component {...props}/> </Layout> )}/> ) const MainLayout = props =>( <div> <SideBar/> {props.children} <div> class App extends Component { render() { return( <BrowswerRouter> <div> <Switch> <AppRoute path = "/dashboard" layout={MainLayout} component={Dashboard}/> </Switch> </div> </BrowserRouter> ) } } Any help is greatly appreciated!