How can I save input value to custom state having type list of text

how can I add input value to custom state having type list of text because I want to add more than one values

Reference to the current state’s value and add your text