The dev.to project with GatsbyJS-12

Welcome to part-12 of the series. You can find part-11 here.

We will start to add the Search functionality in our blog. There are some gatsby plugin to add the search functionality, but we can add it with plain old react code.

I found this very good blog by Monica Powell to do it with react code.

Let’s first add the Search Bar by updating the index.js file as below. We are adding an input box to capture the user’s input.

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

And our Search Bar is fully working now.

Image for post
Image for post
Fully working

This completes part-12 of the series. You can find part-13 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