2023-02-04 17:17:17 -05:00
|
|
|
import React from 'react';
|
2023-02-04 20:07:08 -05:00
|
|
|
// import reactDom from 'react-dom'; ---> deprecated
|
|
|
|
|
import { createRoot } from 'react-dom/client';
|
2023-02-07 00:05:00 -05:00
|
|
|
import { Provider } from 'react-redux';
|
|
|
|
|
import { store } from './store';
|
2023-02-04 17:17:17 -05:00
|
|
|
import App from './src/App';
|
2023-02-04 18:17:47 -05:00
|
|
|
import './src/style.css';
|
2023-02-04 17:17:17 -05:00
|
|
|
|
2023-02-04 20:07:08 -05:00
|
|
|
const container = document.getElementById('root');
|
|
|
|
|
const root = createRoot(container); // createRoot(container!) if you use TypeScript
|
|
|
|
|
// reactDom.render(<App />, document.getElementById('root'));
|
2023-02-07 00:05:00 -05:00
|
|
|
root.render(
|
|
|
|
|
<Provider store={store}>
|
|
|
|
|
<App />
|
|
|
|
|
</Provider>
|
|
|
|
|
);
|