import React, { useState} from 'react'; import { Routes, Route, Navigate } from 'react-router-dom'; import GettingStarted from './components/GettingStarted.js'; import SignIn from './components/SignIn.js'; import SignUp from './components/SignUp.js'; import InterestInventory from './components/InterestInventory.js'; import Dashboard from './components/Dashboard.js'; import UserProfile from './components/UserProfile.js'; import './App.css'; function App() { console.log("App.js is rendering!"); const [isAuthenticated, setIsAuthenticated] = useState(() => { return !!localStorage.getItem('token'); // Check localStorage }); return (

AptivaAI - Career Guidance Platform (beta)

{/* Redirect root to /signin */} } /> {/* Public routes */} } /> } /> {/* Protected routes */} : } /> : } /> : } /> : } /> {/* Catch-all for unknown routes */} } />
); } export default App;