Answers for "redux provider strictmode"

Lua
0

can you wrap redux provider within react.strictmode

// React.StrictMode should wrap the whole application including the provider too. So Change your code like bellow:  
  <React.StrictMode>
    <Provider store={store}>
      <App />
    </Provider>
  </React.StrictMode>,
  document.getElementById('root')
Posted by: Guest on July-14-2020

Browse Popular Code Answers by Language