Learn GatsbyJS by creating a tourism site -4

Photo by Milada Vigerova on Unsplash

Welcome to part-4 of the series. You can find part-3 here.

As told in the earlier post, this series is based on the learning from this awesome udemy course by John Smilga

We will use styled-components in this post to style our project. So, we will install the plugin gatsby-plugin-styled-components in our project.

As per the official document we need to npm install these packages first.

npm install --save gatsby-plugin-styled-components styled-components babel-plugin-styled-components

So, head over to your project root directory and stop the gatsby develop and run the above npm install.

Then head over to gatsby-config.js file in the root directory and add this plugin as below.

Gatsby Config

Rest of the chapter is exclusive content and will be in my upcoming book Gatsby Cookbook.

This will show our Hot Tips section in our Home Page.

Hot Tips

This completes part-4 of the series. You can find the code for the same in this link.

You can find part-5 here.

--

--

--

Founder TWD, JavaScript & ReactJS Trainer, Youtuber, Blogger

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The Power of the MutationObserver in JavaScript

Woman coding at computer

[LeetCode]Odd Even Linked List

Share youtube link on medium11

鬼灭之刃剧场版:无限列车篇 2020 (Demon Slayer: Kimetsu no Yaiba) 完整版本 HD/BluRay

Regular Expressions for Testers — Regex4T(using javascript)

Stateful and Stateless Components in React

Linking Local Packages in React Native the Right Way

Drawing Attention to Climate Change With Interactive Generative Art

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
Nabendu Biswas

Nabendu Biswas

Founder TWD, JavaScript & ReactJS Trainer, Youtuber, Blogger

More from Medium

Netflix Clone Dashboard and Backend Integration

Backend Development Key Technologies and Features

Quick guide on custom web page design — do’s don'ts get to #1 on Google (level: beginner)

An image depicting the difference in server side vs client side web languages

Using React with Express