0.3.0 • Published 2 years ago

ankr-react v0.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

ankr-react

React hooks and components built on top of Ankr's Advanced APIs and Ankr.js

Usage

  1. Install the package
npm install ankr-react

yarn add ankr-react
  1. Wrap your app with the <Provider /> component
import { Provider } from 'ankr-react';

function MyApp({ Component, pageProps }) {
  return (
    <Provider>
      <Component {...pageProps} />
    </Provider>
  );
}

export default MyApp;
  1. Use the hooks
import { useNFTsByOwner } from 'ankr-react';

const Page = () => {
  const {data, error, isLoading} = useNFTsByOwner({
    walletAddress: '0x0ED6Cec17F860fb54E21D154b49DAEFd9Ca04106',
    blockchain: ['eth', 'polygon'],
  })

  return (
    ...
  )
}
0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago