You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
583 B
23 lines
583 B
import React from 'react';
|
|
import ReactDOM from 'react-dom/client';
|
|
import App from './App';
|
|
import "./styles/index.scss";
|
|
import { Provider } from 'react-redux';
|
|
//import store from './app/store';
|
|
import store from './reducers/index';
|
|
import { getPosts } from './actions/post.actions';
|
|
import { getUsers } from './actions/users.actions';
|
|
|
|
store.dispatch(getUsers());
|
|
store.dispatch(getPosts());
|
|
|
|
const root = ReactDOM.createRoot(document.getElementById('root'));
|
|
root.render(
|
|
<React.StrictMode>
|
|
<Provider store={store}>
|
|
<App />
|
|
</Provider>
|
|
</React.StrictMode>
|
|
);
|
|
|