React Typescript Add Value To Array Php