Skip to content

terrashiba/react-terra

ย 
ย 

Repository files navigation

@react-terra

Conventional Commits JavaScript Style Guide code style: prettier TypeScript>=4


react-terra logo


โš ๏ธWarning! This library is in a highly experimental state. It is not currently recommended for production use. However, contributions are welcome and encouraged ๐Ÿš€โš ๏ธ

๐Ÿ‘‰ Visit react-terra.dev for full docs


Installation

[Hooks only at the moment. Component library coming soon]

  yarn add @react-terra/hooks @terra-money/terra.js 
  @terra-money/wallet-provider rxjs

Follow the instructions from https://github.com/terra-money/wallet-provider to wrap your app in the wallet provider:

import {
  NetworkInfo,
  WalletProvider,
  WalletStatus,
  getChainOptions,
} from '@terra-money/wallet-provider';
import React from 'react';
import ReactDOM from 'react-dom';

// getChainOptions(): Promise<{ defaultNetwork, walletConnectChainIds }>
getChainOptions().then((chainOptions) => {
  ReactDOM.render(
    <WalletProvider {...chainOptions}>
      <YOUR_APP />
    </WalletProvider>,
    document.getElementById('root'),
  );
});

About

Composable hooks and components to build the future of finance. ๐Ÿš€

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 90.9%
  • CSS 5.5%
  • HTML 2.7%
  • JavaScript 0.9%