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
Existing <title> will be overridden by the one shown by the element. ( or should they have a rule for multiple elements that have <title>? Parhaps LIFO rule is intuitive enough) <title> should be only 1 element to follow HTML spec.
<link> and <style> should be inside <head> element.
The text was updated successfully, but these errors were encountered:
React version: [email protected]
Steps To Reproduce
<title>
,<link>
or<style>
.Link to code example: https://stackblitz.com/edit/vitejs-vite-e847s61k
The current behavior
<title>
element inside the element is added above the existing one. thus there are (more than) 2<title>
s.<link>
and<style>
stay at the component you wrote.The expected behavior
According to the official doc, "When React renders this component, it will see the <title> and tags, and automatically hoist them to the section of document.".
<title>
will be overridden by the one shown by the element. ( or should they have a rule for multiple elements that have<title>
? Parhaps LIFO rule is intuitive enough)<title>
should be only 1 element to follow HTML spec.<link>
and<style>
should be inside<head>
element.The text was updated successfully, but these errors were encountered: