mirror of https://github.com/openspug/spug
28 lines
802 B
JavaScript
28 lines
802 B
JavaScript
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import { Router } from 'react-router-dom';
|
|
import { ConfigProvider } from 'antd';
|
|
import zhCN from 'antd/es/locale/zh_CN';
|
|
import history from 'libs/history';
|
|
import './index.css';
|
|
import App from './App';
|
|
import moment from 'moment';
|
|
import 'moment/locale/zh-cn';
|
|
import * as serviceWorker from './serviceWorker';
|
|
|
|
moment.locale('zh-cn');
|
|
|
|
ReactDOM.render(
|
|
<Router history={history}>
|
|
<ConfigProvider locale={zhCN}>
|
|
<App/>
|
|
</ConfigProvider>
|
|
</Router>,
|
|
document.getElementById('root')
|
|
);
|
|
|
|
// If you want your app to work offline and load faster, you can change
|
|
// unregister() to register() below. Note this comes with some pitfalls.
|
|
// Learn more about service workers: https://bit.ly/CRA-PWA
|
|
serviceWorker.unregister();
|