Skip to content

How to use radio buttons with Formik? #3565

Discussion options

You must be logged in to vote
<input type="radio" className="radio" name="admin" value="true" id="true" onChange={formik.handleChange} checked={formik.values.admin === 'true'} />

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@holabruno
Comment options

Answer selected by mattdimicelli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants