25 lines
639 B
JavaScript
25 lines
639 B
JavaScript
import "./App.css";
|
|
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
|
|
import Home from "./components/pages/Home";
|
|
import Navbar from "./components/Navbar";
|
|
import Footer from "./components/Footer";
|
|
import Faq from "./components/pages/Faq";
|
|
import About from "./components/pages/About";
|
|
|
|
function App() {
|
|
return (
|
|
<>
|
|
<Router>
|
|
<Navbar />
|
|
<Switch>
|
|
<Route path="/" exact component={Home} />
|
|
<Route path="/faq" component={Faq} />
|
|
<Route path="/about" component={About} />
|
|
</Switch>
|
|
<Footer />
|
|
</Router>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default App;
|