Advertisement
CheezPuff

Untitled

Aug 5th, 2023
1,356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { BrowserRouter, Routes, Route } from 'react-router-dom'
  2. import './App.css';
  3. import Control from './controlpanel/Control';
  4. import NavBar from './components/NavBar';
  5. import SignIn from './components/SignIn';
  6.  
  7. function App() {
  8.   return (
  9.     <div className="App">
  10.       <BrowserRouter>
  11.       <NavBar/>
  12.       <Routes>
  13.  
  14.         {/* <Route path="/" element={< SignIn />} /> */}
  15.         <Route path='/control' element={< Control />} />
  16.  
  17.       </Routes>
  18.       <SignIn/>
  19.       </BrowserRouter>
  20.     </div>
  21.   );
  22. }
  23.  
  24. export default App;
  25.  
Tags: react
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement