Added modules with actions, reducer, selectors and structured style

This commit is contained in:
2020-03-26 04:05:20 +05:30
parent fc92e9564b
commit f92cfbb7fe
57 changed files with 3274 additions and 115 deletions

24
src/app/main.js Normal file
View File

@@ -0,0 +1,24 @@
import React from 'react';
import ReactDOM from 'react-dom';
import thunk from 'redux-thunk'
import Immutable from 'immutable'
import {createStore, applyMiddleware, compose} from 'redux'
// import * as serviceWorker from '../serviceWorker';
import Router from './router';
import reducer from './reducer'
import 'bootstrap/dist/css/bootstrap.min.css'
import './index.scss'
const composeEnhancers =
typeof window === 'object' &&
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ?
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
serialize: { // prettier-ignore
immutable: Immutable
}
}) : compose;
const store = createStore(reducer, composeEnhancers(applyMiddleware(thunk)))
ReactDOM.render(<Router store={store} />, document.getElementById('root'));
// serviceWorker.unregister();