owlprotocol / web3-redux

Web3 Redux Library
6 stars 1 forks source link

ContractCall React Component #7

Open leovigna opened 2 years ago

leovigna commented 2 years ago

Simple wrapper component around the React hooks that takes the same parameters as props and displays the result. Also useful could be an optional render prop which serves as a format function or a custom component. See how Drizzle components work for inspiration.

leovigna commented 2 years ago

Also make sure to add React.memo to memoize the component.

leovigna commented 2 years ago

This issue will likely be moved to a separate project in the future web3-redux-components