Skip to content

sandoche/react-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 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

Languages

  • TypeScript 95.9%
  • HTML 4.1%