Chapter 2. Core Elements of Gatsby

In Chapter 1, we covered some of the most important foundations you’ll need to be familiar with as you begin working with Gatsby, and we ended with a rudimentary “Hello world” site in Gatsby in our local development environment. In this chapter, we’ll dive into what we covered at the end of Chapter 1 in more detail, with more information about the Gatsby command-line interface, working with starters, how Gatsby pages and components work, the layout component, CSS in Gatsby, and how to add plugins to your site.

We explored the Gatsby CLI at length at the end of Chapter 1, because it is the primary conduit by which you as a Gatsby developer will interact with your Gatsby site. Many common tasks for Gatsby development are included with the Gatsby CLI, and we’ll return frequently to Gatsby CLI commands throughout this book. For this reason, it’s only logical we start with some of the fundamentals of the Gatsby CLI and what it can do to accelerate your Gatsby ...

Get Gatsby: The Definitive Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.