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.

Image for post
Image for post
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.

Image for post
Image for post
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.

Image for post
Image for post
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.

Written by

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

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store