Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mapdispatchtoprops


function mapDispatchToProps(dispatch){
return{submitNewMessage: function(add){
    dispatch(addMessage(add))}
  }
}
 
PREVIOUS NEXT
Tagged: #mapdispatchtoprops
ADD COMMENT
Topic
Name
6+3 =