Skip to main content
Here is a complete, single-file example showing how to build an application with urBackend using create-react-app or Vite. This example includes:
  1. The global <UrProvider>.
  2. A client-side router (using simple state for demonstration).
  3. A public Login page (<GuestRoute>) with the pre-built <UrAuth> UI.
  4. A secure Dashboard page (<ProtectedRoute>).
  5. A <UrUserButton> for the profile dropdown and logout.

App.tsx