react-final-form icon indicating copy to clipboard operation
react-final-form copied to clipboard

nested forms not working with functional components [example](https://codesandbox.io/s/p7p6lx24xq)

Open jokhuzb1 opened this issue 3 years ago • 1 comments
trafficstars

See this working example

Originally posted by @gvautour in https://github.com/final-form/react-final-form/issues/276#issuecomment-401328415

i was working with functional components and it does not allow nested form, do I have to use class based components or there is a workaround

the error i'm getting is "validateDOMNesting(...):

cannot appear as a descendant of
." and i followed as you have shown in the example, but functional components

thanks

jokhuzb1 avatar Jun 02 '22 07:06 jokhuzb1

This is not a nested form, which you mentioned example URL https://codesandbox.io/s/p7p6lx24xq

mikdanjey avatar Jul 12 '22 09:07 mikdanjey

@jokhuzb1 Please see https://github.com/final-form/react-final-form/issues/976#issuecomment-1378855583

gertdreyer avatar Mar 02 '23 18:03 gertdreyer