adding redux in progress

This commit is contained in:
Daniel Avila 2023-02-07 00:05:00 -05:00
parent 85efaa4173
commit 7978ddd871
8 changed files with 97 additions and 62 deletions

View file

@ -1,10 +1,16 @@
import React from 'react';
// import reactDom from 'react-dom'; ---> deprecated
import { createRoot } from 'react-dom/client';
import { Provider } from 'react-redux';
import { store } from './store';
import App from './src/App';
import './src/style.css';
const container = document.getElementById('root');
const root = createRoot(container); // createRoot(container!) if you use TypeScript
// reactDom.render(<App />, document.getElementById('root'));
root.render(<App />);
root.render(
<Provider store={store}>
<App />
</Provider>
);