19 lines
454 B
JavaScript
19 lines
454 B
JavaScript
import React from 'react';
|
|
|
|
|
|
export default function RadioButton() {
|
|
return (
|
|
<>
|
|
<p>
|
|
Group! Value! Label!
|
|
</p>
|
|
<input type="radio" id="huey" name="drone" value="huey" />
|
|
<label for="huey">Huey</label>
|
|
<input type="radio" id="dewey" name="drone" value="dewey" />
|
|
<label for="dewey">Dewey</label>
|
|
<input type="radio" id="louie" name="drone" value="louie" />
|
|
<label for="louie">Louie</label>
|
|
</>
|
|
);
|
|
}
|