Advertisement
metalni

react am formfields

Mar 22nd, 2023
1,058
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // parent
  2. <FormRadioButton
  3. // ...rest of props
  4. onChange={(event, handler) => {
  5.     handler(event)
  6.     setNotificationType(e.target.value)
  7. }} />
  8.  
  9. // child
  10. <RadioGroup
  11. // ... rest of props
  12. onChange={(event) => onChange(event, field.onChange)}
  13. />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement