|
@@ -4,12 +4,15 @@ import './index.css';
|
|
import App from './App';
|
|
import App from './App';
|
|
import reportWebVitals from './reportWebVitals';
|
|
import reportWebVitals from './reportWebVitals';
|
|
import state from './Redux/state';
|
|
import state from './Redux/state';
|
|
|
|
+import { addPost } from './Redux/state';
|
|
import { BrowserRouter } from 'react-router-dom';
|
|
import { BrowserRouter } from 'react-router-dom';
|
|
|
|
|
|
|
|
+// addPost('Hi you guys');
|
|
|
|
+
|
|
ReactDOM.render(
|
|
ReactDOM.render(
|
|
<React.StrictMode>
|
|
<React.StrictMode>
|
|
<BrowserRouter>
|
|
<BrowserRouter>
|
|
- <App state={ state } />
|
|
|
|
|
|
+ <App state={ state } addPost={ addPost }/>
|
|
</BrowserRouter>
|
|
</BrowserRouter>
|
|
</React.StrictMode>,
|
|
</React.StrictMode>,
|
|
document.getElementById('root')
|
|
document.getElementById('root')
|