```html
J'ai un problème:
Attention: Propriété de type invalide: Propriété `children` de type `object` fournie à `Provider`, un seul ReactElement était attendu.
J'ai cherché une réponse pendant un certain temps maintenant mais je n'arrive pas à résoudre cela. Ma version de react est 15.3.0.
merci~
import React from 'react';
import ReactDom from 'react-dom';
import { createStore, applyMiddleware, combineReducers } from 'redux';
import { Provider } from 'react-redux';
import { Router, Route, IndexRoute, hashHistory } from 'react-router';
import { syncHistoryWithStore, routerReducer } from 'react-router-redux';
import thunkMiddleware from 'redux-thunk';
import reducers from './redux/reducers';
import Entrance from './components/Entrance.jsx';
import EntranceNone from './components/EntranceNone.jsx';
import CreditPoints from './components/CreditPoints.jsx';
import CreditPrivilege from './components/CreditPrivilege.jsx';
import CreditPromote from './components/CreditPromote.jsx';
let reduxDevTool = null;
let combReducer = { app: reducers, routing: routerReducer };
let store = createStore(combineReducers(combReducer), applyMiddleware(thunkMiddleware));
const history = syncHistoryWithStore(hashHistory, store);
ReactDom.render(
,
document.getElementById('app')
);
require('../less/entrance.css');
import { initRootFontSize,originDomin } from '../utils';
import React,{Component} from 'react';
import classNames from 'classnames';
import 'babel-polyfill';
import cookie from 'react-cookie';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as Actions from '../redux/action';
import { hashHistory ,Link } from 'react-router';
class Entrance extends Component {
constructor (props) {
super(props);
initRootFontSize();
this.state = {
agree:true,
submitFlag:false
};
}
handleAgreeMent(){
this.setState({agree:!this.state.agree});
}
componentDidMount(){
if(creditData.isOpenCreditService === "0"){
this.context.router.push('/');
}else{
this.context.router.push('/creditPoints');
}
}
componentDidUpdate(prevProps,prevState){
if(this.props.resCode && this.state.submitFlag){
if(this.props.resCode == "000"){
this.context.router.push('/creditPoints');
}else{
alert(this.props.resMsg);
}
}
}
handleClick(){
if(this.state.agree){
this.props.actions.fetchIsOpen();
this.setState({submitFlag:true});
}
}
render () {
return(
xxx
xxx
xxxxx
{this.state.submitFlag?'x':'xx'}
);
}
}
function mapStateToProps(state) {
return {
resCode: state.app.resCode,
resMsg: state.app.resMsg,
dataList: state.app.dataList
};
}
function mapDispatchToProps(dispatch) {
return {
actions: bindActionCreators(Actions, dispatch),
};
}
Entrance.contextTypes = {
router: React.PropTypes.object
};
export default connect(mapStateToProps, mapDispatchToProps)(Entrance);
```