In a single-page web application, you will probably have a navbar allowing the user to go to different sections of the page. So today we are going to see how to build that. Demo https://www.loom.com/share/1862dfd99f7249a59913db2c9dd62062 Setup Creat...

Markdown supported Β· ββ΅ to post
Nice article!
If you want to avoid installing dependencies and only need the simplest smooth scrolling I can recommend the css property scroll-behaviour.
But judging from the documentation of react-scroll you can refine the scrolling, that's pretty nifty!
Edit: iOS support for the css property is a bit different, users need to explicitly enable smooth scrolling
Tapas Adhikary
Educator @tapaScript | Founder CreoWis & ReactPlay - Writer - YouTuber - Open Source
Nice tip. Thanks for sharing Avneesh Agarwal