export const handleChange = e => dispatch => { // <- Эта строка
dispatch({
type: PROMO_CODE,
payload: e.target.value
});
};
"use strict";
var handleChange = function handleChange(e) {
return function (dispatch) {
dispatch({
type: PROMO_CODE,
payload: e.target.value
});
};
};
function handleChange(e) {
return function (dispatch) {
dispatch({
type: PROMO_CODE,
payload: e.target.value
});
};
};
export const handleChange = e => {
return dispatch => { // <- Эта строка
dispatch({
type: PROMO_CODE,
payload: e.target.value
});
};
}