Hi, newbie question alert. I want to add a drop down list using a Select Form Control, e.g.
<FormGroup controlId="expiry"> <ControlLabel>Expires in</ControlLabel> <FormControl value={expiry} type="select" onChange={e => setExpiry(e.target.value)} />
the React Bootstrap documentation provides an example for adding the form elements (below). Most examples I find are a little different e.g. <Form.Control/>
vs <FormControl/>
. How can I add select elements using the syntax used in this guide?
<Form.Group controlId="exampleForm.ControlSelect1"> <Form.Label>Example select</Form.Label> <Form.Control as="select"> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> </Form.Control> </Form.Group>
From https://react-bootstrap.github.io/components/forms/
Thanks!