I have a React application with 3 pages(routes) and I support 2 languages (English and Spanish). Do I need to paste the following code In the public\index.html <head></head> part like this?
<link rel="alternate" hreflang="en" href="https://url_of_page/"/>
<link rel="alternate" hreflang="es" href="https://url_of_page/es"/>
<link rel="alternate" hreflang="en" href="https://url_of_page/landing-webpage"/>
<link rel="alternate" hreflang="es" href="https://url_of_page/es/landing-webpage"/>
<link rel="alternate" hreflang="en" href="https://url_of_page/business-website"/>
<link rel="alternate" hreflang="es" href="https://url_of_page/es/business-website"/>
I was looking at Google Search Console, and other SEO websites the past week and could not find the answer to that. Thank you so much, StackOverflow!