useDisconnect

Hook for disconnecting the currently connected wallet.

Example

import { useDisconnect } from "@thirdweb-dev/react";
function App() {
const disconnect = useDisconnect();
return <button onClick={disconnect}>Disconnect</button>;
}
function useDisconnect(): () => Promise<void>;

Returns

let returnType: () => Promise<void>;

A function to disconnect from current connected wallet