mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
initial commit
This commit is contained in:
commit
4a2a343e41
11 changed files with 13640 additions and 0 deletions
29
src/index.js
Normal file
29
src/index.js
Normal file
|
@ -0,0 +1,29 @@
|
|||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
|
||||
import { App } from '$containers/App';
|
||||
import { Provider } from 'react-redux';
|
||||
|
||||
import { ConnectedRouter } from 'react-router-redux';
|
||||
import { PersistGate } from 'redux-persist/integration/react';
|
||||
|
||||
// import { configs } from '$constants/moment';
|
||||
import configureStore, { history } from '$redux/store';
|
||||
|
||||
const { store, persistor } = configureStore();
|
||||
|
||||
// import './js/common';
|
||||
// import './js/script';
|
||||
import './css/style.css';
|
||||
|
||||
export const Index = () => (
|
||||
<Provider store={store}>
|
||||
<PersistGate loading={null} persistor={persistor}>
|
||||
<ConnectedRouter history={history}>
|
||||
<App />
|
||||
</ConnectedRouter>
|
||||
</PersistGate>
|
||||
</Provider>
|
||||
);
|
||||
|
||||
ReactDOM.render(<Index />, document.getElementById('index'));
|
Loading…
Add table
Add a link
Reference in a new issue