constWrapper=({children,name,friends})=>{constinitialValues=React.useMemo(()=>({name:props.name,// <- should be 'name,'friends:props.friends,// <- should be 'friends,'},[name,friends]);return(<HookedFormonSubmit={console.log}initialValues={initialValues}>{children}</HookedForm>
)}
constWrapper=({children,name,friends})=>{constinitialValues=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!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
There is an error in the first code snippet
Yes, thank you it should be:
Thank you so much for bringing that to my attention!