// 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')