I am trying to create a smooth scrolling page in React. The page is split into 4 sections:
Overview
About us
Courses
News
So on scrolling, if it's at the section 'News' with the id=news the URL should be updated to: website.com/specific-string#news so he can copy this link, and when you access this URL to send you directly to that section.
I am using react version 16.3.1. So cannot use hooks here.
After adding this smooth scroll feature, I need to display a button which will download the content in the section in the viewport. I am new to react and trying to learn new things by challenging myself everyday. Anyone who could guide me here?