Add a Table of Contents with Smooth scroll using Gatsby and MDX (opens in new tab)
If you’re having issues with the clicks not scrolling to link IDs see Not scrolling to ID The main purpose for me documenting this is to demonstrate implementing a table of contents with smooth scroll to the anchors in a Gatsby project using MDX.
Read the original article