The fastest way to get started with Gatsby+MDX is to use the MDX
allows you to write .mdx files in
src/pages to create new pages on
🚀 Quick start
Create a Gatsby MDX site.
Use the Gatsby CLI to create a new site, specifying the MDX starter.npx gatsby new my-mdx-starter https://github.com/ChristopherBiscardi/gatsby-starter-mdx-basic
Navigate into your new site’s directory and start it up.cd my-mdx-starter/npm installgatsby develop
Open the source code and start editing!
Your site is now running at
Note: You'll also see a second link:
http://localhost:8000/___graphql. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.
my-mdx-starterdirectory in your code editor of choice and edit
src/pages/index.mdx. Save your changes and the browser will update in real time!
Now go check out the guides to find out what else you can do with Gatsby and MDX!