Migrating my Gatsby MDX blog to AstroJS (and why you shouldn't)

This page summarizes the projects mentioned and recommended in the original post on dev.to

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • ryosuke-gatsby-blog

    Static PWA React-powered portfolio and blog built with GatsbyJS

    It’s that time again. The initial commit on the last version of my Gatsby-based site was Mar 30, 2018, and the last major redesign was October 14th 2019. It’s been 3 years since I last touched the design of the site, so as a designer you can imagine I’ve been reeling waiting to change things up.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • gelato-ui

    React component library and design system powered by Vanilla Extract

    My goal was to try a few new libraries and get experience under my belt (cause isn’t that what dev blogs are for?). I’d swap out Gatsby for **Astro,** and Styled Components + Styled System for **Vanilla Extract**. I was interested in trying Astro as it just hit 1.0, and I’ve been experimenting for a while with Vanilla Extract as a way to write Typescript powered styles and export to CSS.

  • react-postprocessing

    📬 postprocessing for react-three-fiber

    For the post processing I used @react-three/post-processing components, and to get the look just right I created a debug panel using Leva to adjust some values (like bokeh blur).

  • leva

    🌋 React-first components GUI

    For the post processing I used @react-three/post-processing components, and to get the look just right I created a debug panel using Leva to adjust some values (like bokeh blur).

  • zustand

    🐻 Bear necessities for state management in React

    My workaround? I ended up using zustand to create a store outside of “React-land” and using that between components. But this still was a major issue with a lot of wrapper components that needed access to context (like a theme provider).

  • three.bas

    THREE.JS Buffer Animation System

  • Gatsby

    The best React-based framework with performance, scalability and security built in.

    My goal was to try a few new libraries and get experience under my belt (cause isn’t that what dev blogs are for?). I’d swap out Gatsby for **Astro,** and Styled Components + Styled System for **Vanilla Extract**. I was interested in trying Astro as it just hit 1.0, and I’ve been experimenting for a while with Vanilla Extract as a way to write Typescript powered styles and export to CSS.

  • vanilla-extract

    Zero-runtime Stylesheets-in-TypeScript

    My goal was to try a few new libraries and get experience under my belt (cause isn’t that what dev blogs are for?). I’d swap out Gatsby for **Astro,** and Styled Components + Styled System for **Vanilla Extract**. I was interested in trying Astro as it just hit 1.0, and I’ve been experimenting for a while with Vanilla Extract as a way to write Typescript powered styles and export to CSS.

  • styled-system

    ⬢ Style props for rapid UI development

    My goal was to try a few new libraries and get experience under my belt (cause isn’t that what dev blogs are for?). I’d swap out Gatsby for **Astro,** and Styled Components + Styled System for **Vanilla Extract**. I was interested in trying Astro as it just hit 1.0, and I’ve been experimenting for a while with Vanilla Extract as a way to write Typescript powered styles and export to CSS.

  • styled-components

    Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress 💅

    My goal was to try a few new libraries and get experience under my belt (cause isn’t that what dev blogs are for?). I’d swap out Gatsby for **Astro,** and Styled Components + Styled System for **Vanilla Extract**. I was interested in trying Astro as it just hit 1.0, and I’ve been experimenting for a while with Vanilla Extract as a way to write Typescript powered styles and export to CSS.

  • nx

    Smart Monorepos · Fast CI

    I started to develop some of the components in isolation using Storybook and Vanilla Extract. I used one of my previous projects as the basis, Gelato UI, a design system I created using Nx monorepo.

  • astro

    The web framework for content-driven websites. ⭐️ Star to support our work!

    ` becomes `` const mdxProvider = () => { return { name: "mdx-components-provider", enforce: "post", transform(code, id) { if (!id.endsWith(".mdx")) return; code = `import { components } from '@/components/MDXComponents/MDXComponents';\n${code}`; code = code.replace( "export default MDXContent;", ` export default function (props) { const newProps = { ...props, components } return MDXContent(newProps); };` ); return code; }, }; }; // https://astro.build/config export default defineConfig({ markdown: { shikiConfig: { theme: "material-palenight", }, }, // Enable React to support React JSX components. integrations: [react(), mdx()], vite: { // Example: Add custom vite plugins directly to your Astro project plugins: [vanillaExtractPlugin(), mdxProvider()], }, });

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • How I Built My Personal Website for Free with Hugo

    8 projects | dev.to | 15 Aug 2024
  • DevNow:支持集成 Tina CMS

    3 projects | dev.to | 14 Aug 2024
  • Taming the Beast: Structuring Large-Scale React Applications 🏗️

    3 projects | dev.to | 29 Jul 2024
  • Darling, I converted our perfectly fine SPA application into SSR: Part 2

    2 projects | dev.to | 14 May 2024
  • Growth Hacking Killed GitHub Stars

    1 project | dev.to | 10 Apr 2024