Skip to content
Advertisement

After the site loads it shows the contact section instead of the header [closed]

I made it with react and anytime I reload the site it shows the contact section instead of the header first even after deploying it: here is the link to the website

JavaScript

Advertisement

Answer

Please provide appropriate code snippet. Not an direct link for others to debug. It’s hard for others too.

Your issue is this line of code in Form.js

JavaScript

autoFocus will bring the focus on that input automatically when page is loaded that’s the reason your page is scrolled to contact section.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement