-
Notifications
You must be signed in to change notification settings - Fork 47k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invariant violation error message improvement #7065
Comments
This is expected behavior. Use |
The issue is that the error itself could use some language improvement. |
@starkch It works for me https://jsfiddle.net/apn1p0gg/1/ |
@linoleum-js; @zpao The issue is that the error message itself could use some improvement. Several of us were working on some code and found the current message unclear. |
Do you want to request a feature or report a bug?
Error message bug.
What is the current behavior?
Uncaught Invariant Violation: img is a void element tag and must not have
children
or useprops.dangerouslySetInnerHTML
. Check the render method ofprovide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/reactjs/69z2wepo/).**
What is the expected behavior?
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
found in Chrome, but should be universal.
The text was updated successfully, but these errors were encountered: