Home > other >  React Application showing this error "Warning: validateDOMNesting(...): <form> cannot app
React Application showing this error "Warning: validateDOMNesting(...): <form> cannot app

Time:07-18

This is my code in my component named "ExpenseForm.js"

ExpenseForm.js

This is my return: Return

When I try to run it, the error occurs. Please help

CodePudding user response:

You should not have a form inside another form . Lets see your parent component

CodePudding user response:

it is because I have this in my parent component, so "Aymendps" and "Ani" were right that the form should not be wrapped in a form. parent component wrapping the form which causes the error

  • Related