|
@@ -1,22 +1,9 @@
|
|
|
-import React from 'react';
|
|
|
-import ReactDOM from 'react-dom';
|
|
|
-import './index.css';
|
|
|
-import App from './App';
|
|
|
-import reportWebVitals from './reportWebVitals';
|
|
|
-import state from './Redux/state';
|
|
|
-import { addPost } from './Redux/state';
|
|
|
-import { BrowserRouter } from 'react-router-dom';
|
|
|
+import "./index.css";
|
|
|
+import reportWebVitals from "./reportWebVitals";
|
|
|
+import state from "./Redux/state";
|
|
|
+import { rerenderEntireTree } from "./render";
|
|
|
|
|
|
-// addPost('Hi you guys');
|
|
|
-
|
|
|
-ReactDOM.render(
|
|
|
- <React.StrictMode>
|
|
|
- <BrowserRouter>
|
|
|
- <App state={ state } addPost={ addPost }/>
|
|
|
- </BrowserRouter>
|
|
|
- </React.StrictMode>,
|
|
|
- document.getElementById('root')
|
|
|
-);
|
|
|
+rerenderEntireTree(state);
|
|
|
|
|
|
// If you want to start measuring performance in your app, pass a function
|
|
|
// to log results (for example: reportWebVitals(console.log))
|