Interactive MDX

Authors
Scott Tesler
Published at
07/31/2026

Blog posts are plain MDX. That means you can mix markdown with real React components.

A live counter

Click the buttons. State lives in the component, right in the middle of the article.

Interactive MDX component — click to update local state.

3

A simple chart

No heavy charting library required for a quick illustration — this SVG line chart is a local component registered in mdx-components.tsx.

Example metric over time

Still just markdown

GFM still works: tables, task lists, and fenced code.

FeatureSupport
MDXyes
GFMyes
  • Write in MDX
  • Drop in components
  • Add Three.js when you need it ('use client' + dynamic import)
export function hello(name: string) {
  return `Hello, ${name}`;
}

For WebGL or three.js scenes, add a client component and import it the same way — keep heavy deps out of the default template until a post needs them.