Skip to content
Snippets Groups Projects
Commit 1587d913 authored by Ismail's avatar Ismail
Browse files

auth reducer created and linked it with redux store

parent d441f8b5
No related branches found
No related tags found
No related merge requests found
......@@ -3,10 +3,17 @@ import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import { createStore } from 'redux';
import authReducer from './store/reducers/authReducer';
import { Provider } from 'react-redux';
const store = createStore(authReducer);
ReactDOM.render(
<React.StrictMode>
<App />
<Provider store = { store }>
<App />
</Provider>
</React.StrictMode>,
document.getElementById('root')
);
......
const initialState = {}
const authRed = (state = initialState, action) => {
return state
}
export default authRed;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment