You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JSX isn't HTML and has its own semantics. One of the ways it differs from HTML is that all elements need to close, either by self-closing or with a closing element.
<img> is invalid in JSX but is how we define images in HTML.
When
<img>
is does not have self closing slash like<img />
, vercel deploys broke completely.<img >
is considered valid HTML as it is a void element, but for some reason<img >
breaks vercel deploys.Apparently
<img>
is not valid in XHTML or XML and needs to be<img />
so maybe XHTML or XML is being used under the hood somewhere? Not sureWe should investigate why this breaks and/or add a lint rule so we catch this at the linting stage and prevent future headaches.
The text was updated successfully, but these errors were encountered: