Minimal Vite + React 18 demo for @lukso/up-modal.
Shows a single Connect button that opens the LUKSO Universal Profile connection modal. Once connected, the address is displayed with a Disconnect button.
npm install
npm run devsrc/connector.ts— callssetupLuksoConnector()once at module scope and exports theLuksoConnectorpromisesrc/main.tsx— imports the connector (triggers setup early) and mounts the React appsrc/App.tsx— awaits the connector promise, subscribes to connection state viawagmiConfig.subscribe(), opens the modal on button click
- Vite + React 18 + TypeScript
@lukso/up-modalfor the connection modal@wagmi/corefor connection state management