Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import { Provider } from 'react-redux';
import Redbox from 'redbox-react';
// import reducer from './reducers';
import store from './store/store';
import App from './App';
import './style.scss';
delete AppContainer.prototype.unstable_handleError;
const root = document.getElementById('root');
render(
,
root,
);
if (module.hot) module.hot.accept(App, () => render(App));
import 'bootstrap/dist/css/bootstrap.min.css'
import 'font-awesome/css/font-awesome.css'
import 'admin-lte/dist/css/AdminLTE.min.css'
import 'admin-lte/dist/css/skins/skin-blue.min.css'
import 'jquery'
import 'react-s-alert/dist/s-alert-default.css'
import 'react-s-alert/dist/s-alert-css-effects/flip.css'
import './application.css'
import './modules/core/css/core.css'
import Application from './Application'
//disable redbox
delete AppContainer.prototype.unstable_handleError
const history = createHistory({})
const socket = process.env.NODE_ENV === 'production' ?
io() : io('http://localhost:3000')
const store = createStore(history, socket)
socket.on('action', store.dispatch)
const root = document.getElementById('app')
function render(Component) {
ReactDOM.render(