3Wrap your app
CandelaProvider creates the wallet and restores the user’s session. With announce, Candela also appears in the official @alephium/web3-react connect button: tested end to end with version 3.0.5 (connect, transfer, contract deploy and call, auto-reconnect).
import { createRoot } from 'react-dom/client'
import { CandelaProvider } from '@candela/sdk/react'
import { App } from './App'
const candela = {
appId: 'app_xxxxxxxx', // from the Candela dashboard
vaultUrl: 'https://vault.candela.example',
apiUrl: 'https://api.candela.example',
networkId: 'testnet',
nodeUrl: 'https://node.testnet.alephium.org',
appName: 'Tipjar'
} as const
createRoot(document.getElementById('root')!).render(
<CandelaProvider config={candela} announce>
<App />
</CandelaProvider>
)