Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

redux append to an array

case ADD_ITEM :
    return { 
        ...state,
        arr: [...state.arr, action.newItem]
    }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #redux #append #array
ADD COMMENT
Topic
Name
4+3 =