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