coopermaruyama/react-web3

How can i use react-redux and Web3Provider both work together?

Closed this issue · 1 comments

React-Redux use Provider
and i want use Web3Provider
How can i use react-redux and Web3Provider both work together?

You can literally just nest them like this in the root of your app:

const MyApp = () => (
  <Provider store={store}>
    <Web3Provider>
       <Stuff />
     </Web3Provider>
  </Provider>
)