adding an object to an array inside an array with useReducer

前端 未结 0 351
执念已碎
执念已碎 2020-12-14 00:01

reducer:

function reducer(state, action) {
    switch (action.type) {
        case \'addAnotherBox\':
            return ????state[action.index] = [...state[a         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题