I am new to Reactjs. I have functional component that has Title defined, now i want scroll to be implemented when a user clicks on the title, user should be scrolled to appropriate functional component in the same page below
const Page = () => {
return (
<div>
<div>
About Us
</div>
<div>
Contact Us
</div>
<AboutUs/>
<ContactUs/>
</div>
);
};
In the above code scrolling should happpen when user clicks on About Us or Contact Us
Can someone please help me in implementing the scrolling?