Providers
The MiniKitProvider wraps your app and provides MiniKit context to all child components. It configures wagmi, react-query, and the Farcaster connector automatically.providers/Providers.tsx
Mini App initialization
When a user first opens your mini app, the MiniKitProvider will initialize the mini app context. This is done by calling theuseMiniKit
hook.
context
provides you with details about the user and the client (e.g. Base app).
app/App.tsx
External Links and Navigation
To leverage the native browser of the Base app, you can use theuseOpenUrl
hook.
Do not use raw links as it can cause breaks or force the user to leave the app.
components/ExternalLink.tsx
Close Mini App
Allows you to add native functionality to close the mini app.components/CloseButton.tsx