This enhancer adds React hooks that can be used to make some Anvil Client SDK data reactive.
npm install @ada-anvil/sdk-core @ada-anvil/sdk-enhancer-react
import { reactEnhancer } from "@ada-anvil/sdk-enhancer-react";
const enhancedSdk = anvil.enhance(reactEnhancer);
function ReactComp() {
const wallet = enhancedSdk.enhancers.react.wallet.useName();
return <div>Connected wallet: {wallet}</div>;
}