import React, {Component} from "react";
import {BrowserRouter as Router,Route,Link,Switch,Redirect} from" react-router-dom";// introduces routing
import {Button} from "react-bootstrap";
import". / Home.css"
import HomeSection from". / HomeOne/HomeOne";
import HomeOneContext from". / HomeOneContext/HomeOneContext"
/ / this is a secondary route
class Home extends Component {
render() {
return (
<div>
<Router>
<div>
<HomeSection />
<Switch>
<Route exact path="/" component={HomeOneContext}/>
<Route path="/homeonecontext" component={HomeOneContext}/>
</Switch>
</div>
</Router>
</div>
);
}
}
export default Home;
this is my code
I hope God can take a look at it for me