frontend/src/index.js
/* eslint-disable */import "regenerator-runtime/runtime";import App from './App';import { AppContainer } from 'react-hot-loader';import configureStore from './store/store';import { Provider } from 'react-redux';import React from "react";import ReactDOM from "react-dom";import { createBrowserHistory, startListener } from 'redux-json-router'; // Create the history objectconst history = createBrowserHistory(); // Create the storeconst store = configureStore(history); // Start the history listenerstartListener(history, store); // Render the applicationconst rootElement = document.getElementById("root"); const render = Component => { ReactDOM.render(( <Provider store={store}> <AppContainer> <Component/> </AppContainer> </Provider> ), rootElement);}; render(App); if (module.hot) { console.log('Is module.hot? Yes'); module.hot.accept('./App.js', function() { console.log('Accepting the updated app.'); const x = render(require('./App').default); });}