01
Building it in 2022 was not about recreating a ConnectButton
use-wallet already had an implementation in early 2022: the old branch contains January wallet code and a February release record; the current-line initialization has a May 13 author date. I built it to support Conflux Core and EVM, stay lightweight, and leave connection UI to each DApp. For a versioned comparison, RainbowKit 0.1.0 imported base styles, configured wagmi and ethers, nested WagmiProvider and RainbowKitProvider, then rendered ConnectButton, with visibility props and theme variables for customization. This work also needed cfx_* methods, Base32 addresses, latest_state, and CIP-23, so use-wallet wrapped the injected provider and connection state without fixed UI. The current-line initial README recorded a target of roughly 3.7 KB gzip for source, or about 20 KB with decimal.js.
- Not a rejection of wagmi or RainbowKit; the problem boundary was different
- Chain differences remain explicit: Conflux Core is not another EVM chainId
- UI ownership stays with the product: hooks and commands come before ConnectButton