nft-react
nft-react
is a set of react components and hooks that makes interacting with NFTs easy.
Install
yarn add nft-react
Guide
See center.dev for a setup guide.
Usage
Wrap the outermost part of your React app with the center provider, like this:
import { Provider } from 'nft-react'
const Application = () => {
return (
<Provider network="ethereum-mainnet">
{/* your application */}
</Provider>
)
}
Then, anywhere inside the Provider, you can access Center like so:
import { Asset } from 'nft-react'
const Page = () => (
<Asset address="0xF4121a2880c225f90DC3B3466226908c9cB2b085" tokenId="3630" />
)
Development
We've included storybook in development mode.
yarn storybook