let inputTag = document.getElementById("sayTxt");
let col5 = "";
inputTag.addEventListener("change", (e) => {
col5 = e.target.value
}) export const deactivateItem = (domenKey, apiKey, ids, activate) => {
const domenPath = domen[domenKey],
apiPath = api[apiKey],
apiList = ids.map((item) =>
Api.put(`${domenPath}${apiPath}/${item.id}`, { enabled: !!activate })
);
return Promise.all(apiList).then((res) => res); // тут можно диспатчить екшены какие надо
}; function handleChange(e) {
return function (dispatch) {
dispatch({
type: PROMO_CODE,
payload: e.target.value
});
};
};test: /\.(js|jsx)$/ <div id="price"> Price </div>
document.getElementById("price").textContent = "что-то другое"