Gatsby is a React framework for building fast, content-driven websites — blogs, documentation sites, marketing pages, and e-commerce storefronts. It pulls data from anywhere (Markdown files, a CMS, an API), builds your pages at build time, and ships them as static HTML with React hydration. The result is a site that loads instantly and still feels like an app.
What makes Gatsby special is its data layer. Every piece of content becomes a node in a GraphQL graph, and every page queries exactly the data it needs. You stop writing fetch calls and start writing queries.
npm init gatsby my-site cd my-site npm run develop
Enter fullscreen mode
Exit fullscreen mode
A page that queries Markdown posts looks like this:
import { graphql } from 'gatsby' ;
export default function Blog ( { data } ) { return ( < ul > { data . allMarkdownRemark . nodes . map ( post => ( < li key = { post . id } > { post . frontmatter .…