How to increase/decrease value with reducer?

I am working on a temperature control app with react native. To get the value of the temperature I use redux toolkit. My problem is that my code for increasing/decreasing the initial value with the reducers doesn’t work. I get the 20 as value but using handlers to dispatch(in/decreaseTemp()) doesn’t do anything. What am I… Read More How to increase/decrease value with reducer?

React Reducer – Add elements to existing element

i want that new updates get continuous added to "kanbanboard" but instead the old value get signed over. enter image description here ACTION-Function export const editExpense = (id, updates) => ({ type: "EDIT_EXPENSE", id, updates }); REDUCER-FUNCTION case "EDIT_EXPENSE": return state.map((expense) => { if (expense.id === action.id) { return { …expense, kanbanboard:[{…action.updates}] }; } else… Read More React Reducer – Add elements to existing element