Docs

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>;
}

Returns

A function to disconnect from current connected wallet