no message
This commit is contained in:
@@ -2,15 +2,11 @@ import countUI from '../../components/count'
|
||||
import {connect} from 'react-redux'
|
||||
import {createIncreementAction,createDecreementAction,createIncreementAsyncAction} from '../../redux/count_action'
|
||||
|
||||
function mapStateToProps(state){
|
||||
return {state}
|
||||
}
|
||||
function mapDispatchToProps(dispatch){
|
||||
return {
|
||||
jia:data=>dispatch(createIncreementAction(data)),
|
||||
jian:data=>dispatch(createDecreementAction(data)),
|
||||
jiaAsync:(data,time)=>dispatch(createIncreementAsyncAction(data,time)),
|
||||
}
|
||||
}
|
||||
const mapStateToProps=state=>({state})
|
||||
const mapDispatchToProps=dispatch=>({
|
||||
jia:data=>dispatch(createIncreementAction(data)),
|
||||
jian:data=>dispatch(createDecreementAction(data)),
|
||||
jiaAsync:(data,time)=>dispatch(createIncreementAsyncAction(data,time)),
|
||||
})
|
||||
const CountContainer=connect(mapStateToProps,mapDispatchToProps)(countUI)
|
||||
export default CountContainer
|
||||
Reference in New Issue
Block a user