Untitled

mail@pastecode.io avatar
unknown
plain_text
8 months ago
596 B
1
Indexable
Never
// App.jsx

import React, { useState } from 'react';
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import { AuthProvider } from './AuthContext';
import Navbar from './Navbar';
import Home from './Home';

function App() {
  const [isAuthenticated, setIsAuthenticated] = useState(false);

  return (
    <AuthProvider>
      <BrowserRouter>
        <Navbar isAuthenticated={isAuthenticated} />
        <Routes>
          <Route path="/" element={<Home />} />
          {/* Other routes */}
        </Routes>
      </BrowserRouter>
    </AuthProvider>
  );
}

export default App;
Leave a Comment