Back

Array Push in React Js / TypeScript

Copy Below Code View As A Text File Show Text Only Show API Edit Code
                            

let newArr: any = typesRecord; newArr = Object.assign([], newArr); newArr.push(formData); settypesRecord(newArr);