Skip to content

Runtime Error / Hydration failed #849

Answered by NikRoe
MarenOelixtown asked this question in Web
Discussion options

You must be logged in to vote

Hi there,

the issue you are currently facing is related to how you structure your HTML.

In /pages/createplant/index.js you return JSX that is wrapped by a styled component FormPageContainer which is a form element.
Amongst other things, this JSX also contains the component CreatPlantForm which is also a form element.

The error comes from wrapping a form inside of a form.

I recommend you change the FormPageContainer to be a div instead of a form. This should get rid of the error.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MarenOelixtown
Comment options

Answer selected by NikRoe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Web
Labels
None yet
2 participants