You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Add React-Redux and Redux# Redux is not dependent on React
yarn add redux react-redux
On the parent component index.js
// INDEX.JSimport{Provider}from'react-redux';import{createStore}from'redux';importreducerfrom'./reducer';// Start the start with the reducer fileconststore=createStore(reducer);// Wrap the App with a Provider that passes the// store to each child componentconstApp=()=>(<Providerstore={store}><div><Counter/></div></Provider>);render(<App/>,document.getElementById('root'));