1234567891011121314151617181920212223242526272829303132333435 |
- import '@babel/polyfill';
- import React from 'react';
- import ReactDOM from 'react-dom';
- import { Provider } from 'react-redux';
- import '../images/favicon.ico';
- import configureStore from './stores/configureStore';
- import Fonts from './fonts';
- import zhCN from 'antd/es/locale/zh_CN';
- import { Tabel } from 'antd';
- import moment from 'moment';
- import 'antd/dist/antd.css';
- moment.locale('zh-cn');
- // import '../styles/icon.js';
- const store = configureStore();
- function renderApp() {
- const App = require('./components/app').default;
- ReactDOM.render(
- (
- <Provider store={store}>
- <Fonts />
- <App />
- </Provider>
- ), document.getElementById('app')
- );
- }
- renderApp();
- if (module.hot) {
- module.hot.accept('./components/app', renderApp);
- }
|