I'm using React Router as a...
framework
Reproduction
Go to https://stackblitz.com/edit/vitejs-vite-qsvgns2s
System Info
Used Package Manager
npm
Expected Behavior
As you move the pages, following will happen:
<title> will be replaced with ones added by the component routed.
<link>, <style>, <meta> goes inside <head> element.
Actual Behavior
Only <meta> works as intended.
<title> will be added above the <title> you set in index.html. So 2 titles are set, which doesn't comply HTML spec.
<link>, <style>, will be at the place you wrote those.