lloydrichards.dev

FRONTEND

MDX

May 18, 2023

Learning MDX and contentlayer

Getting Started with rebuilding my website with MDX and contentlayer

Getting Started

This is a test post to see how MDX and contentlayer work together. I'm hoping to rebuild my website with this stack.

Importing TSX Components

This is a line chart that I wrote in TSX. It's a bit of a pain to import it into MDX, but it's possible.

Importing Story

Attempted to import the Meta and Canvas components from a storybook story. This didn't work. I think it's because the storybook is also a MDX compiler and contentlayer doesn't like that.