← Back to blog

My First MDX Post

// first-post

Exploring the new local MDX architecture in Next.js

Welcome to MDX!

This is my first post using the new local MDX setup instead of fetching from GitHub READMEs. MDX allows you to use Markdown alongside React components!

Why this is better:

  • SEO: Static generation at build time.
  • Speed: No runtime fetching from external APIs.
  • Flexibility: We can drop React components right into our posts.
// Look at this syntax highlighting!
export function hello() {
  console.log("Hello from MDX!");
}