Skip to content

Instantly share code, notes, and snippets.

@adrianmcli
Created November 27, 2017 19:06
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/a92d4f27e929626489a738bfa507fbcb to your computer and use it in GitHub Desktop.
Save adrianmcli/a92d4f27e929626489a738bfa507fbcb to your computer and use it in GitHub Desktop.
Usage example of the withWeb3 HOC
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