mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-27 05:30:14 +08:00
17 lines
431 B
JavaScript
17 lines
431 B
JavaScript
import React from 'react'
|
|
import ReactDOM from 'react-dom'
|
|
import App from './App'
|
|
import { createStore, combineReducers } from 'redux'
|
|
import { Provider, connect } from 'react-redux'
|
|
import ReduxContainer from './ReduxContainer.js'
|
|
|
|
// 合并 redux 创建stroe
|
|
const store = createStore(combineReducers( ReduxContainer ))
|
|
|
|
ReactDOM.render(
|
|
<Provider store={store}>
|
|
<App />
|
|
</Provider>,
|
|
document.getElementById('yapi')
|
|
)
|