Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nft-react

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nft-react

React components for interacting with NFTs

  • 0.5.0
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 25 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc