Skip to content
Permalink
c07a9dbd33
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
29 lines (26 sloc) 1.15 KB
import React from 'react'; //all the required imports to use in the react app.
import './App.css';
import { Route, BrowserRouter, Routes } from 'react-router-dom'
import MenuBar from "./components/MenuBar";
import Login from "./components/Login";
import SignUp from "./components/SignUp";
import Details from "./components/Details";
import Categories from "./components/Categories";
import AddDocument from "./components/AddDocument";
import Home from './components/Home'
function App() { //used to route the pages and adds the hyperlink to the menu bar so it knows where to direct users
return (
<BrowserRouter>
<MenuBar />
<Routes>
<Route exact path='/' element={<Home />}/>
<Route exact path="/Login" element={<Login/>}/>
<Route exact path="/SignUp" element={<SignUp/>}/>
<Route exact path="/Details/:id" element={<Details/>}/>
<Route exact path="/Categories/:category" element={<Categories/>}/>
<Route exact path="/AddDocument" element={<AddDocument/>}/>
</Routes>
</BrowserRouter>
);
}
export default App;