Semantic UI React getting input value by input name

Viewed 32

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.

0 Answers
Related