New Jul 10, 2024

Remix's evolution to a Vite plugin

Multi Author Blogs All from This Dot Labs RSS feed View Remix's evolution to a Vite plugin on thisdot.co

The Remix / React Router news is a beautiful illustration of software evolution. You start with a clear idea of what youā€™re building, but itā€™s impossible to anticipate exactly what it will become. If you havenā€™t heard the news yet, Ryan Florence announced at React Conf 2024 that Remix will be a Vite plugin for React Router.

Itā€™s a sort of surprising announcement but it makes a lot of sense if youā€™ve been following along as Remix the project has evolved. In this post weā€™ll recap the evolution of the project and then dig into what this change means for the future of Remix in the Server Components era of React.

šŸ—“ļø October 2021 > Remix is open sourced

In the beginning, Remix cost money. In October 2021 they received some seed funding and the project was open sourced.

Remix was an exciting new framework for server-rendering React websites that included APIā€™s for loading data on the server and submitting data to the server with forms. It started a trend in the front-end framework space that a lot of other popular frameworks have modeled after or taken inspiration from.

šŸ—“ļø March 2022 - September 2022 > Remixing React Router

At some point they realized that the APIā€™s that they had created for Remix were a more natural fit in React Router. In this post Ryan details the plans to move these Remix APIā€™s into React Router.

Several months later, React Router 6.4 is released with the action, loader, and other Remix APIā€™s baked in.

"We've always thought of Remix as "just a compiler and server for React Router"

After this release, Remix is now mostly as they described - a compiler and server for React Router.

šŸ—“ļø October 2023 - February 2024 > Remix gets Vite support

If youā€™re not familiar with Vite, itā€™s an extremely popular tool for front-end development that handles things like development servers and code bundling/compiling. A lot of the modern front-end frameworks are built on top of it.

Remix announced support for Vite as an alternative option to their existing compiler and server. Since Remix is now mostly ā€œjust a compiler and server for React Routerā€ - whatā€™s left of Remix now that Vite can handle those things?

šŸ—“ļø May 2024 > Remix is React Router

The Remix team releases a post detailing the announcement that Ryan made at React Conf. Looking back through the evolution of the project this doesnā€™t seem like an out of the blue, crazy announcement. Merging Remix APIā€™s into React Router and then replacing the compiler and server with Vite didnā€™t leave much for Remix to do as a standalone project.

šŸ React Router - the past, present, and future of React

React Router is one of the oldest, and most used packages in the React ecosystem.

Since Remix has always been effectively "React Router: The Framework", we wanted to create a bridge for all these React Router projects to be able to upgrade to Remix.

With Remix being baked into React Router and now supporting SPA mode, legacy React Router applications have an easier path for migrating to the next generation of React.

https://x.com/ryanflorence/status/1791488550162370709

Remix vs React 19

If youā€™ve taken a look at React 19 at all, it turns out it now handles a lot of the problems that Remix set out to solve in the first place. Things like Server Components, Server Actions, and Form Actions provide the same sort of programming model that Remix popularized.

https://x.com/ryanflorence/status/1791484663883829258

Planned Changes for Remix and React Router

Just recently, a post was published giving the exact details of what the changes to Remix and React Router will look like.

tl;dr

For React Router

For Remix

For Both

The show goes on

I love how this project has evolved and I tip my hat to the Remix/React Router team. React Router feels like a cozy blanket in an ecosystem that is going through some major changes which feels uncertain and a little scary at times.

The Remix / React Router story is still being written and Iā€™m excited to see where it goes. Iā€™m looking forward to seeing the work they are doing to support React Server Components. A lot of people are pretty excited about RSCā€™s and there is a lot of room for unique and interesting implementations.

Long live React Router šŸ™Œ.

Scroll to top