Last active
November 22, 2017 10:11
-
-
Save adrianmcli/fa5d4e06e94243ed70e1c73c0c714b78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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