vite-project v0.0.0


Function: App()

App(): Element

Defined in: src/App.tsx:94

Root React component.

Returns

Element

The top-level application component.

Remarks

Defines the application’s routes using React Router v6 and renders the global header banner via Template.

Routing table:

  • /loginLogin page

  • /registerRegister page

  • /chatChat page (protected)

  • / → Redirects to /chat

  • * → Fallback to Login (could be replaced with 404)

Example

import { createRoot } from 'react-dom/client';
import App from './App';

createRoot(document.getElementById('root')!).render(<App />);