React Wallet Connection
Overview
Install
npm install @phantasma/connect-reactProvider setup
import { ReactNode } from "react";
import { PhaConnectCtx, PhaConnectState } from "@phantasma/connect-react";
export function PhantasmaProvider({ children }: { children: ReactNode }) {
const phaConnectState = new PhaConnectState();
return (
<PhaConnectCtx.Provider value={phaConnectState}>
{children}
</PhaConnectCtx.Provider>
);
}Built-in widget
Custom UI (MobX-aware)
Signing
Restore behavior
Last updated