coinbase / onchainkit

React components and TypeScript utilities to help you build top-tier onchain apps.
https://onchainkit.xyz
MIT License
537 stars 125 forks source link

feat: add `use client` directives to swap components #655

Closed roushou closed 3 months ago

roushou commented 3 months ago

This PR adds use client directives to components intended to be run only on the client such as:

This way it would be easier to integrate to projects that use server components

Zizzamia commented 3 months ago

Love this PR, please cut this in smaller one, maybe 5~6 files at the time, so it's easier for us to merge them in time, without causing merge conflict.

roushou commented 3 months ago

I separated by package @Zizzamia

token: https://github.com/coinbase/onchainkit/pull/667 wallet: https://github.com/coinbase/onchainkit/pull/668 identity: https://github.com/coinbase/onchainkit/pull/669 internal: https://github.com/coinbase/onchainkit/pull/670