Initialize the Redux Store
In this quickstart example, we will be using configuring Web3-Redux store, adding a network, a contract, and making web3 rpc queries.
To setup our store, we follow the standard react-redux
configuration guide. Add a Provider
component to wrap the entire React app with the redux context.
src/index.tsx
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore } from '@owlprotocol/web3-redux';
import App from './App';
const store = createStore();
ReactDOM.render(
<React.StrictMode>
<Provider store={store}>
<App />
</Provider>
</React.StrictMode>,
);