'Semantic UI React getting input value by input name

Is there a way to get a semantic ui react input's value by name in React? For example, I have the following code:

ids.map((id) => <>
    <Input name={id}></Input>
</>
)
<Button onClick={handleSubmit}></Button>

Where I want handlesubmit to go through the array of ids, and get the input's value by its id.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source