Hello, in the login form of my site i encounter this error.```text
Unhandled Runtime Error
Error: Hydration failed because the initial UI does not match what was rendered on the server.
See more info here: https://nextjs.org/docs/messages/react-hydration-error
Did not expect server HTML to contain a <div> in <div>.
<Login>
<div>
^^^^^
<div>
^^^^^```
problem being my component/form is pretty basic:
const Login = () => {
return (
<div className="">
<div className="w-full bg-formideo-white">
<h1 className="text-xl font-bold font-poppins mb-6">
Connectez-vous
</h1>
<form className="">
<input type="email" placeholder="E-mail" className={inputStyle} />
<input type="password" placeholder="Mot de passe" className={inputStyle} />
<div className="flex flex-col mt-4 items-end">
<Link className="text-primary-green text-sm font-medium font-poppins" href="/forgot-password">Mot de passe oublié ?</Link>
<ButtonComponent
buttonLabel="Connexion"
buttonStyle="w-full text-white text-sm font-bold font-poppins justify-center"
buttonContainerStyle=" h-[50px] px-[18px] py-3.5 bg-formideo-custom-gradient rounded-lg mt-6 w-full"
type="submit"
/>
</div>
</form>
</div>
</div>
);
};
export default Login;```
I've isolated the problem to the 2 inputs, when both are commented, no hydration error happens.
When one or the other are commented there's no hydration error.
when both are active, there's hydration error.
when placeholders are removed hydration error is still there.
when placeholders are removed and ONE or both of the inputs are changed to text, the error is no longer there.
when inputs are both changed to text, but there's a placeholder, i get a hydration error.
What can be causing this? i\m trying to bugfix but i can't find any logic