How to add a ToC in Gatsby

1 Β· Haseeb Majid Β· Nov. 11, 2020, midnight
Summary
A lot of people, I included, are using Gatsby to build their own blogs. One of the things I wanted to add to my blog was a table of contents (ToC) πŸ“. A ToC will show you all the headings of an article and when you click on a heading it’ll take you directly to that heading. It’s a nice little feature to have on your blog, which makes it easier for users to navigate and find the information they are looking for....