--- title: "Custom components" date: "2018-01-27" draft: false author: Jay Gatsby tags: - remark - React - components --- What if you want custom UI interactions embedded in your Markdown? By using `rehype-react` with the `htmlAst` field, you can write custom React components and then reference them from your Markdown files, or map generic HTML elements like `