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

@dorgtech/arc.react

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dorgtech/arc.react

## Warning: This library uses Arc v2 (Pre-Alpha). See [disclaimer](./DISCLAIMER.md) for more information

  • 0.0.1-alpha.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by900%
Maintainers
4
Weekly downloads
 
Created
Source

Arc.react

Warning: This library uses Arc v2 (Pre-Alpha). See disclaimer for more information

Arc.react componentizes DAOstack's Arc.js library, enabling easier React application integration.

Turn any React app into a DAO enabled dApp in just:

1...

npm i --save @daostack/arc.react`

2...

<Arc config={new ArcConfig("rinkeby")}>

3...

<DAO address="0xMY_DAO"></DAO>

Enabling you to build custom interfaces for displaying and interacting with your DAO's:

members...

<Members>
  <Member.Data>
    {(data: MemberData) => (
    <div>{data.address}</div>
    )}
  </Member.Data>
</Members>

proposals...

<Proposals>
  <Proposal.Data>
  <Proposal.Entity>
  {(data: ProposalData, entity: ProposalEntity) => (
    <div>
      <h1>{data.title}</h1>
      <button onClick={() => entity.vote({...})}>
        Up Vote
      </button>
      <button onClick={() => entity.vote({...})}>
        Down Vote
      </button>
    </div>
  )}
  </Proposal.Entity>
  </Proposal.Data>
</Proposals>

and any other entity within the DAOstack protocol!

Read The Docs

Check the demo app!

Build & Contribute

Prerequisites

  • nvm
  • docker
  • docker-compose

Running Playground

nvm install
nvm use
yarn
yarn start

Testing

yarn start:subgraph
yarn test

FAQs

Package last updated on 03 Jun 2020

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