I use response-redux to connect React to a Redux repository and use the connect API to add a send component to the component. But the component does not get the submit property. Here is the code to demonstrate the problem I am facing:
"use strict" var React = require('react'); var ReactDOM = require('react-dom'); var Redux = require('redux'); var ReactRedux = require('react-redux'); var Provider = ReactRedux.Provider; function menuManager(state = {count: 0}, action) { switch (action.type) { case 'ADD': return state + 1; case 'REMOVE': return state - 1; default: return state; } } let store = Redux.createStore(menuManager); let TestLab = React.createClass({ onRemove: function(itemRemove) {
When I try to call "this.props.dispatch", I get the error "this.props.dispatch".
source share