The dev.to project with GatsbyJS-28

Welcome to part-28 of the series. You can find part-27 here.

In this part i will start with adding the logic to show current count of total blogs, next to search bar. We will also update the count, if someone searches in search bar.

Open the index.js file and add a variable postCount, which will get the total count of posts. After that add a new state variable filteredCount.

index.js

Rest of the chapter is exclusive content and will be in my upcoming book Gatsby Cookbook. You can find more details about it here.

Gatsby Cookbook

The book is currently 80% complete and available on leanpub to purchase at this url.

It will also launch all the major platform like leanpub, amazon, iBooks, gumroad once it is complete in July 2020.

It’s time to push the code to github for the automatic deployment in netlify. And our site https://thewebdev.tech/ is live after the deployment.

Site Live

This completes part-28 of the series. You can find the final part here.

You can find the code for the same in this github repo.

UI Lead- ReactJS, JavaScript and everything in-between.