Minified React error with simple form
Description
In this code we have a minimal implementation of a form with a single input, using the placeholder
attribute triggers a Minified React error. With this repo, we can verify this.
Expected Results
We should be able to use placeholder
attribute in our code.
Actual Results
Using placeholder
triggers Minified React Error
Steps to Reproduce
To test this out, fork this repo and set it up to deploy with Vercel.
- Test by first deploying as is, on the live preview open your console log, you'll see the Minified error logs
- update the code to comment the placeholder attribute
- deploy and hard refresh the live preview, verify you don't see the console errors anymore
<form>
<input
type="email"
name="email"
id="email"
placeholder="Enter your email" // comment me and deploy to verify you no longer see the error
/>
</form>