DEV Community

loading...

Discussion on: Hooked-Form v4

Collapse
jovidecroock profile image
Jovi De Croock Author

Yes, thank you it should be:

const Wrapper = ({ children, name, friends }) => {
  const initialValues = React.useMemo(() => ({
    name: props.name, // <- should be 'name,'
    friends: props.friends, // <- should be 'friends,'
  }), [name, friends]);

Thank you so much for bringing that to my attention!