-
Hello, the react hook form's magic does not help me change the radio button correctly but it gets the event :( https://codesandbox.io/s/kind-glitter-vj9u1?fontsize=14&hidenavigation=1&theme=dark |
Beta Was this translation helpful? Give feedback.
Answered by
kaisiant
Sep 4, 2020
Replies: 1 comment 1 reply
-
Found the ans through this link https://codesandbox.io/s/react-hook-form-v6-controller-qsd8r <Controller |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kaisiant
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found the ans through this link https://codesandbox.io/s/react-hook-form-v6-controller-qsd8r
<Controller
control={control}
name="AntdRadio"
render={({ onChange, value }) => (
<Radio.Group value={value} onChange={e => onChange(e.target.value)}>
A
B
C
D
</Radio.Group>
)}
/>