Created
November 27, 2017 19:06
-
-
Save adrianmcli/a92d4f27e929626489a738bfa507fbcb to your computer and use it in GitHub Desktop.
Usage example of the withWeb3 HOC
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 './withWeb3' | |
const MyComponent = ({ web3 }) => | |
<div> | |
<h1>My Dapp</h1> | |
<pre>{JSON.stringify(web3, null, 4)}</pre> | |
</div> | |
export default withWeb3(MyComponent) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment