I have a React Bootstrap Form component, in which I want to get the value of a select form control. I tried to update the value of one my hooks with an onChange, but I can't seem to get it to work (type always stays as an empty string), my current code is as follows.
const [type, setType]: any = useState('');
render(
<Form.Group controlId="formBasicSelect">
<Form.Label>Select Norm Type</Form.Label>
<Form.Control as="select" >
<option value="DICTUM">Dictamen</option>
<option value="CONSTANCY">Constancia</option>
<option value="COMPLEMENT">Complemento</option>
value={type}
onChange={(e: any) => setText(e.target.value)}
</Form.Control>
</Form.Group>
);
Similar approaches worked with other Form controls, but maybe there is something different about select.