This commit is contained in:
Sacha Weatherstone
2021-06-23 17:00:35 +10:00
parent 52b09397f2
commit 8f65769377
5 changed files with 311 additions and 203 deletions
+6 -1
View File
@@ -3,7 +3,10 @@ import './index.css';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import App from './App';
import store from './store';
const rootElement = document.getElementById('root');
if (!rootElement) throw new Error('Failed to find the root element');
@@ -11,7 +14,9 @@ const root = ReactDOM.createRoot(rootElement);
root.render(
<React.StrictMode>
<App />
<Provider store={store}>
<App />
</Provider>
</React.StrictMode>,
);