Check out example codes for "how to add an element to a Typescript array". It will help you in understanding the concepts better.

Code Example 1

your_array.push(the_element);

Learn ReactJs, React Native from akashmittal.com