Skip to content

kycdao/react-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kycdao-react-sdk License

A wrapper around kycdao-js-sdk for React and Next.js

Installation

The package had not been published yet

npm install https://github.com/kycdao/kycdao-react-sdk

How to use it

  1. Set up the KycDaoProvider component
import { KycDaoProvider } from 'kycdao-react-sdk';

const App = () => {
  const nearNetworkEnv = 'testnet';

  // you can override the default settings here
  const config = {};

  return (
    <div>
      <KycDaoProvider networkId={nearNetworkEnv} config={config}>
        <KycDaoComponent />
      </KycDaoProvider>
    </div>
  );
};
  1. Use the useKycDao() hook to access the kycDao instance
import { useKycDao } from 'kycdao-react-sdk';

const KycDaoComponent = () => {
  const { kycDao } = useKycDao();

  // use the kycDao instance

  return <div>{/* Your view here */}</div>;
};

Example

Check out the KycDaoExample.

Develop

  • Run the library watcher
yarn start
  • Run the demo
cd example
yarn install
yarn start
  • Run the tests
yarn test

Documentation

Contributors

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published