useBlinkDeposit hook wraps the Deposit class with reactive React state. It manages the instance lifecycle and cleans up on unmount.
The React entry point requires
react >= 18 as a peer dependency.Usage
Parameters
The hook accepts a singleDepositConfig object. See Deposit Class for the full config reference.
Deposit instance is created once on first render and destroyed on unmount. The config is read during initialization only. Changing config props after mount does not reconfigure the instance.
This includes appearance — changing the theme prop on a mounted component has no effect. Either pass appearance: { theme: 'system' } so the hosted flow tracks the OS theme on its own, or remount the component with a key when your theme changes. See Dark and light mode.