Gatsby.js — useStaticQuery and Slugs

Photo by Wolfgang Hasselmann on Unsplash

Gatsby is a static web site framework that’s based on React.

We can use it to create static websites from external data sources and more.

In this article, we’ll look at how to create a site with Gatsby.

Query with useStaticQuery Hook

--

--

--

Web developer. Subscribe to my email list now at https://thewebdev.info/subscribe/. Email me at hohanga@gmail.com

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

Recommended from Medium

Let’s Make A JavaScript Calculator

Visualizing Real Time Polygon io crypto trade data using socket and trading view lightweight charts

Parallel Processing with Multithreaded Node.js

Useful Free APIs — Animals and Pets

How to Watch the JavaScript Window Resize Event?

Guide to the Express Application Object — Middleware

Ambiguous Syntax to Look Out for in JavaScript

How to Get the Length of a JavaScript Object?

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
John Au-Yeung

John Au-Yeung

Web developer. Subscribe to my email list now at https://thewebdev.info/subscribe/. Email me at hohanga@gmail.com

More from Medium

JavaScript Coding Tutorial — Part 11 — Green Jelly Beans!

Nice little final touch with an offset drop shadow, like we learned previously.

“For” Loops Explained in Simple English (JavaScript)

How does a JS program gets executed

Show me the sky is blue using React.js Part 2