Skip to content

Instantly share code, notes, and snippets.

@adrianmcli
Last active November 22, 2017 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrianmcli/fa5d4e06e94243ed70e1c73c0c714b78 to your computer and use it in GitHub Desktop.
Save adrianmcli/fa5d4e06e94243ed70e1c73c0c714b78 to your computer and use it in GitHub Desktop.
import React from 'react'
import withWeb3 from '../lib/withWeb3'
// Our `withWeb3` HOC actually injects web3, accounts, and contract into
// the props, but we are only using the accounts prop.
const Accounts = ({ accounts }) =>
<div>
<h1>My Accounts</h1>
<pre>{JSON.stringify(accounts, null, 4)}</pre>
</div>
// Note that we wrap the component with our `withWeb3` HOC
export default withWeb3(Accounts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment