Remix — The New Create React App

This ad is not shown to multipass and full ticket holders
JSNation US
JSNation US 2025
November 17 - 20, 2025
New York, US & Online
See JS stars in the US biggest planetarium
Learn More
In partnership with Focus Reactive
Upcoming event
JSNation US 2025
JSNation US 2025
November 17 - 20, 2025. New York, US & Online
Learn more
Bookmark
Rate this content

Create React App (CRA) was a game changer in garnering React adoption. Prior to the release of CRA, the experience of setting up a React app was more about configuring webpack than it was actually writing React code.

Now that the React docs no longer list CRA as a suggestion on the “Start a New React Project” page, and additionally recommend you pick a React-powered framework, the getting started experience is once again fragmented.

CRA was never meant to be how you built a full-featured React app anyway. It was a starting point, and a really good one. Inevitably many developers (such as myself) used CRA to build websites, and lots of them. However, a lot more goes into building a website than just using a “library for web and native user interfaces” — you need to handle routing, data fetching and mutations, styling, and a whole lot more.

I believe Remix is the best framework available for taking up this mantle. Built on top of React Router, the most widely used routing solution in the React ecosystem, powered by Vite, and now with an option to build pure SPAs (like CRA), Remix is well poised as the best starting point to start React apps of all varieties.

In this talk I plan to show the story of how Remix has evolved into the CRA replacement, how you can easily migrate from a CRA or React Router project, and how Remix will bring you into the future of React.

This talk has been presented at React Summit 2024, check out the latest edition of this React Conference.

FAQ

Create React App 2.0, also referred to as the new Create React App, is an updated version of the original Create React App by the Facebook team. It aims to provide a zero-configuration setup, a single dependency (React scripts), and an exit strategy for more complex configurations.

Create React App was deprecated because it was not actively worked on and didn't keep up with modern development requirements. The React team's documentation no longer recommends using it as a starting point for new React applications.

Vite is a build tool that originated from the Vue ecosystem but has gained widespread adoption in the React community. It offers a simpler configuration, faster build times, and a more flexible plugin system compared to Create React App.

Remix is a framework built on top of React Router that offers solutions for code splitting, routing, data fetching, and generating HTML. It aims to be the new Create React App by providing an easy way to get started with React while offering advanced features and a good community buy-in.

Yes, Remix is being merged into React Router to create a unified framework that incorporates the best features of both. React Router 7 will include everything that Remix offers, making it easier for developers to migrate and upgrade their projects.

The new Create React App should make it easy to get started with React, offer solutions for code splitting, routing, data fetching, and generating HTML, stay up-to-date with the latest React features, and have good community buy-in and a defined future.

Migrating from Remix SPA mode to Server-Side Rendering (SSR) is straightforward and requires just a one-line change in configuration. However, you will need to ensure your application is compatible with SSR by checking dependencies on browser-specific APIs like 'window'.

The Remix branding is not disappearing. While Remix features are being merged into React Router, the Remix brand will continue to exist and will be used for a new RSC-first (React Server Components) framework in the future.

Dan Abramov and Chris Bruchardo, core members of the React team, created Create React App with the vision of making it the blessed getting started experience for building single-page applications (SPAs) in React.

Vite has largely replaced Create React App as the preferred tool for setting up new React projects. It offers a simple configuration, a single dependency, and a plugin system that allows for more flexibility without the need for an explicit 'eject' strategy.

Brooks Lybrand
Brooks Lybrand
30 min
14 Jun, 2024

Comments

Sign in or register to post your comment.
Video Summary and Transcription
The Talk discusses the transition from Create React App to Vite as a more sustainable and popular alternative. Vite is praised for its simplicity, minimal dependencies, and exit strategy. The speaker emphasizes the importance of frameworks like Remix and React Router in providing solutions for common development challenges. The focus is on merging Remix into React Router to create a unified framework, with an emphasis on code splitting, routing, data fetching, and generating HTML. The future direction includes completing React Router 7 and reserving Remix for a different framework build.
Available in Español: Remix - La Nueva Create React App

1. Introduction to Create React app

Short description:

I want to talk about the new Create React app. My name is Brooks Libran, and I work on the Remix team. Have you ever found yourself in this situation where you want to try out the hot new UI library, React?

I today want to talk about the new Create React app. I should have called it Create React app 2.0. I like that. That's a good title, too. I'm going to stick with this one, the new Create React app. And I do need to focus keynotes, so I can actually move through it.

My name is Brooks Libran. You can find me on Twitter and Discord and GitHub at Brooks Libran. That's pretty much it for about everything. I work on the Remix team as the developer relations manager for React router, which is by the Remix team, which is from Shopify. Just to make it really, really clear. In fact, I took a crack at updating our logo. Please don't tell Ryan Florence I did this, because he will get really mad at me. I've messed up our logo so many times, and he's very particular about how it looks. And this is definitely wrong for a couple of reasons.

So here's my question. Has this ever happened to you? Have you ever found yourself in this situation where you want to try out the hot new UI library, React? You've been hearing a lot about it. It's been getting some attraction. But you don't want to spend forever configuring web pack and Babel and all these ridiculous things. You just want to build something.

2. Benefits of create React app

Short description:

You want to build your application with a good set of defaults. You want the ability to eject if needed. Introducing create React app, the default way to build a React app in 2016. It provides a better starting experience and makes it easy to get started with React.

You just want to build your application. And you want a good set of defaults so you can just get started. You don't want to be thinking about all the different stuff you have to set up. You just want it to be set up so you can get started building your application.

And you don't want to be locked in. You do want an option to eject from this nice, pure world if you need to add some more complicated stuff. Maybe eventually you do finally learn how web pack actually works, and you can decipher the documentation that you want the ability to eject. Also pretend that it's 2016, and this statement probably makes a lot more sense. So if this is true of you in 2016, well, I have great news.

Introducing create React app from the Facebook team. This is the default way to build a React app in 2016 at this time. The way that you would start a React app, for the most part, especially a new, fresh one, a pure spa, where everything is client-side and it's beautiful and jamstack is coming and it's going to save all the problems, the way that you would do this is you would typically copy and paste from someone else's starter kit or maybe cobble together a web pack and double yourself. And it was a very, very bad starting experience.

So the meta team at Facebook decided to build create React app as the de facto starting point. And it was very successful. So Dan Abramov and Chris Bruchardo, two of the kind of core members of the React team, kind of created this, and they set out with this vision, this goal, that this would be the blessed getting started experience for building spas in React that you can actually ship. You can actually ship these spas. It's not just like a demo thing. We want create React app to be a starting point where you can actually just go ahead and build and put this up on any sort of static server. And so the goal, like I said, was to make it very easy to get started with React.

3. Philosophy of create React app

Short description:

Create React app had a philosophy of zero configuration, just one dependency, and an exit strategy. The goal was to make it easy to get started with React and provide an escape route for more complicated applications.

And the way they did that, they had kind of three major pieces to their philosophy. So the first was zero configuration. You shouldn't have to set anything up. You should just be able to get going. Why am I messing with Babel and web pack? I just want to learn React. I just want to build in React.

Next, just one dependency. React scripts. Just that one dependency, right? I mean, let's hide the fact that, yes, it is Babel and web pack underneath, but that's how the tower of MPM node modules works anyway, right? It's always hiding other things. It's hiding that complexity behind this one dependency.

And then finally, there's this exit strategy that I talked about. Eventually, your application may get really complicated. Perhaps you want server side rendering. That's how you want to escape the Jamstack world. You want server side rendering. And so you're going to need to expose your web pack bundle and figure out building it yourself. And so you need an exit strategy or ejection as they called it. And they really believed that this would not fail. That this create React App experiment, not just experiment, project would not fail. They didn't think it was going to fail because they intentionally were offering this minimal set of tools.

4. Deprecation of create React App

Short description:

Create React App was successful but has now been deprecated.

You have this ability to exit, to eject the getting started experience. And they were going to promote the hell out of it on the website. This is the solution from the React team. And I actually think it worked really well. It really didn't fail. But of course, as the American journalist and author, Gene Fowler, once said that open source projects are never finished. They're just abandoned. And that is unfortunately what happened to create React App.

This slide I stole from Ryan. So it's actually outdated. But today is the birthday of the last commit to create React App. So happy birthday. This isn't to shame anyone. The create React App project really was successful. And it lived on a long time. And it's been on this slow path to deprecation. If you look at all those points, it's 2023, then 2022, 2022. It's not a project that's been actively worked on and it's not a project you should be using to start your React applications today. There's no shame in that. I think it's really at a point where it's deprecated.

5. Challenges with create React App

Short description:

Create React App's simple setup can be convenient, but the ejection process can be overwhelming with its complex configuration.

In fact, even the React website, the docs themselves, do not recommend create React as a starting point for your next React App. So I think it was mostly successful.

There's one little gripe I have about create React App, actually. So when you start it, this is what you get. Hopefully, yeah, that's good size. You get a pretty simple setup, right? A read me package, package log, standard stuff, a public folder with very standard stuff, have a con, everything like that.

And then your source is actually really pretty easy. You've got setup tests. So it's got some tests for you that's nice and like a single app and whatnot. They used to ship a server worker with it, which was super obnoxious. So, unfortunately, they got rid of that. Man, we all learned how those worked really quickly. And it was not good. But the thing is where that escape hatch, that ejection would end up doing this. It would explode it into this Babel and Webpack config and all this kind of stuff that you're immediately slapped in the face with, oh, yeah, I did want to escape. I did want to eject. I wanted something a little bit more complicated. But man, you just gave me everything. So, yeah, kind of tough.

I also found it interesting that when you eject, they shared a Google form where you could give feedback.

6. The Transition to Vite

Short description:

Create React App had to continuously add new features, resulting in an overwhelming and unsustainable giant Webpack config. This led to the emergence of Vite as an alternative for building React applications.

You can go fill out this if you want. I have no idea if anyone's going to ever read that again. Again, I have no idea where this even goes to. But it still exists. I actually really like that. I like that they wanted the feedback. But basically, the Google form would ask things like, why did you eject? Maybe not. That sounded kind of aggressive. Just like, why did you eject? Why did you want to... What were we missing? What could have been better about Create React App? And so that was kind of what they had to do with Create React App.

They kept on having to add new features. If like styled components came out, they'd have to add that into in support for it. And eventually, they were just holding this giant Webpack config that could just do everything under the sun for you. And it just kind of ballooned. It ballooned in a way that wasn't super sustainable. So what happened next? How are people building their React applications, especially like a spa like Create React App if you can't really use Create React App? Well, along comes Vite. Who here has used Vite before? Okay. That's, I mean, basically the entire room. Maybe 80%, 90%. Vite is such a cool project.

7. The Power of Vite

Short description:

Vite, a project that originated from the Vue ecosystem, has gained traction in the React community as an easy-to-use and framework-focused development tool. It provides a simple configuration and requires minimal dependencies.

It came out of the Vue ecosystem. It's been adopted by so many different frameworks beyond Vue. And more recently, it's gained traction in the React community through Redwood, I believe, was before us. Astro, of course, uses it. And then, Remix most recently. So it's this very cool project that we've all kind of centered around.

And it's very much a... It's designed for frameworks is really the way that it's kind of built. And it also, when you're using it for React App, it also makes it really easy to get started with React. And it's kind of a similar philosophy. At least, this is what I've been able to parse. It's a really easy configuration. It's not zero config, but it's pretty easy. In fact, if you want to create a new Vite project, you just do npm create vite, you tell it, you know, React, and then you get these five options. That fifth one is really interesting. We'll get back to it. And then you just have this one dependency, or maybe two, kind of depending on how you think about it. Again, dependencies are kind of weird because they hide things anyway. You just have this one dependency of the React plugin. So you've already bought into Vite, you're already using that.

8. Vite's Exit Strategy

Short description:

Vite is essentially the replacement for webpack and provides an exit strategy through its plugin system. It has gained popularity compared to React Scripts.

That's essentially the replacement for the webpack piece. And it's doing all your build and everything. And yeah, you just have this React plugin. Very simple. Just one dependency. It's really nice.

And then finally, you have a exit strategy. So what is the exit strategy in Vite? Well, it's a little bit different. And anytime there's quotes around a word, you shouldn't be suspicious. The exit strategy is the fact that it really doesn't have an exit strategy. It has a quote strategy. It has this really nice plugin system that's actually really easy to author plugins and for them to all work together in a way that webpack just is a little bit more difficult.

So how's this been working out? Well, here's good old npm trends of React Scripts, which is how create React app works. That's that one dependency versus Vite. And as you can see, in early 2023, Vite took off and just meteorically, I guess maybe not meteorically, much, much better trend than how React Scripts has gone, which is fine because React Script, again, it's dead at this point."

9. Vite's Popularity

Short description:

Vite has gained traction and is being used more than React Scripts. It has crossed 13 million weekly npm downloads and is half the Webpack downloads. Vite is in a good place and even Webpack is experiencing some dips due to the holidays.

It wasn't an injection and here's all the crap that you now have to deal with. It was a, no, just start with the React plugin and then build up as you need more stuff.

So how's this been working out? Well, here's good old npm trends of React Scripts, which is how create React app works. That's that one dependency versus Vite. And as you can see, in early 2023, Vite took off and just meteorically, I guess maybe not meteorically, much, much better trend than how React Scripts has gone, which is fine because React Script, again, it's dead at this point. It is deprecated. That line should be going down. I would like to see it go down a little bit faster, but that's just the reality.

Also npm trends are, it's a trend. That's all. We're not worried about raw numbers here necessarily. But the reality is Vite is being used way more than React Scripts. Of course, that's including things like Vue and all sorts of other things that are using Vite. So it's not necessarily a one-to-one comparison, but the point is just that it is winning at this point, which is really good.

And a more interesting trend that I think Evan View shared yesterday in his talk at JS Nation, but I first saw it by Patak, who is on the Vite core team, mentioned that Vite just crossed 13 million weekly npm downloads. But more importantly, it's actually like half the Webpack downloads at this point. So Vite is really gaining traction. It's really in this good place. And even Webpack kind of is having a little bit of a stutter. I am going to call this out because people, there's always someone who's a little bit like, what in the world are those dips? So on npm trends, when you see those dips, that's just the holidays because everyone turns out their CI, CD, and we all stop working for a little bit."

10. Vite as the Replacement

Short description:

ViteJS is unquestionably the replacement for Create React app. Vite is so much more than just Create React app, it's the Create JavaScript app. I did not title my talk Remix, the replacement for Create React app, though.

I am going to call this out because people, there's always someone who's a little bit like, what in the world are those dips? So on npm trends, when you see those dips, that's just the holidays because everyone turns out their CI, CD, and we all stop working for a little bit. So if you're ever confused and you think npm trends is unreliable, it's December. That's all it is.

Okay. So I titled this Remix, the new Create React app. And Pierre was very, very nice to point out to me that that made no sense. I said, what? Space, question mark. I'm not saying that Remix isn't good, isn't a good tool, but ViteJS is unquestionably the replacement for Create React app. And by the way, in case you didn't know, I compared a framework with a builder, colon D.

So I told him, I guess you have to go to talk. I actually agree with Pierre. I hope he's here. I have no idea. But I actually 100% agree. Vite is the replacement for Create React app. I was talking to a colleague, Mark Douglas, and he even, he had a better way of putting it. He said, really, Vite is the Create JavaScript app at this point. It's so much more than just Create React app, but it absolutely does replace the experience that we had with Create React app. I did not title my talk Remix, the replacement for Create React app, though. That's not very interesting, and also I'm not going to compete with Vite.

11. The Role of Frameworks

Short description:

Vite is the winner there, and we're using Vite, in fact. The React team has found that most apps and sites eventually build solutions to common problems such as code splitting, routing, data fetching, and generating HTML. Create React app never fully supported these out of the box. You end up building your own little thing. Rick Hanlon said, you're either using a framework or building a framework, and building a framework is really hard.

That's not very interesting, and also I'm not going to compete with Vite. Vite is the winner there, and we're using Vite, in fact. I titled it the new Create React app. I use that word specifically because the React docs themselves talk about how you, as you're starting a new React project, if you're starting a new app, a new Fuli website built fully on React, they really do recommend using a framework. They list some popular frameworks in the library, Next.js, Remix, and a few others, Expo, if you're using native.

Most people have this question of, hey, what if I just don't want to use a framework? Can I use React without a framework? Of course, their answer is no, you cannot use it without a framework. This is a joke. This is not what it says. But it does say, if you're building a new app or a site full of React, we do recommend using a framework. And the reason being, we found, the React team has just found that most apps and sites eventually build solutions to common problems such as code splitting, routing, data fetching, and generating HTML. This is something that Create React app never fully supported just out of the box. These were all choices you had to make eventually as you were building your Create React app anyway. There's really no such thing as a Create React app, as much as I've been saying that, because you end up building kind of your own little thing.

In fact, when you go and you're trying to figure out if you're going to use Bootstrap and Flow and Relay and all these really relevant technologies that we're all using today, if you go down to the adding a router section, it says, hey, you can use any router you want. React Router, that's a very popular one. So even back then in, what was this, 2018? Cool, like five and a half years ago, they were even recommending React Router as your routing solution at the time. And recently Rick Hanlon, on a panel at React Conf, when he was talking about this specific kind of question in the React docs, he made a really good statement that really resonates with me. He said, you're either using a framework or building a framework. And building a framework is really hard. I know this because I work on a team with a bunch of people who build a framework for a living and they don't even let me touch it because it's that hard.

12. Experience with Frameworks and Spawn Mode

Short description:

I have experience with building our own framework at a previous job. Even though I was not the biggest proponent of getting rid of it, the creator wanted to adopt a framework with a core team like Remix or XJS. React router is the solution for code splitting, routing, data fetching, and generating HTML in React app 2.0. An important piece of this conversation is spawn mode in Remix, which works like create React app, enabling pure client-side rendering.

I can use it, I just can't commit the actual code, you know. And I also have experience with this with my previous job. I was at a grocery store in Texas called H-E-B and we had built our own framework. It was even before my time, I was about four years old at the time and it had server side rendering and data fetching patterns and all this kind of stuff. And it was kind of antiquated, honestly.

And even though I was like a remix shill at the time, didn't even work for Shopify, I was not the biggest proponent of getting rid of it. The creator of it was the biggest proponent of getting rid of this framework that he had built and adopting something that actually has a core team around it like a remix or an XJS. So where could you get all of this? Where could you get code splitting, routing, and data fetching, and generating HTML all just built in when you create this new React app 2.0? Oh, wait, sorry, that slide's wrong. There we go. React router, of course. That is the solution, right?

An important piece of this conversation to me is I need to talk a little bit about spawn mode. So if you're not following Remix and what we've been doing there, last October-ish or end of the year, when we were working on the Vite plugin, when we were switching to using Vite as the build tool and making Remix just a plugin, we also released spawn mode. It's kind of a misnomer, honestly, because Remix has always been a spawn. It's always been server side rendered, but then it's enhanced as a spawn. You can opt out of that and make it a full multi-page app, but you did have to have server side rendering, and then everything has these client-side navigations. And then we released this thing called spawn mode, which actually works exactly how create React app worked. It's a pure spawn, as people say. I don't know why a server rendered spawn is an impure spawn, but it is. So a pure spawn, totally client-side rendered. That's it.

13. Migration to Spawn Mode and a New create React App

Short description:

The migration to spawn mode in conjunction with the Vite plugin created opportunities for those who only needed a pure spawn without server-side rendering. The Vite team acknowledged that Remix could potentially fill the void created by create React app's deprecation. They emphasized the need for a new create React app to come from within the React community.

Just your initial shell of your HTML is all that you can render, some initial shell. And so this was also really helpful, because it created that migration for people who just want a pure spawn. Even at Shopify, we actually had really good use cases for people who did not need server side rendering, even though we think for the majority of applications and websites, you benefit from server side rendering. It's just not the case for everything.

So this was a really big piece in conjunction with the Vite plugin. And in fact, Patak, on the Vite team again, said that once we released spawn mode, he kind of noted that there was really a high chance that Remix would end up filling that create React app void that was left. So this is a Vite team, this is not me saying it, making this point too. And he went on to say, people wanted us to turn Vite React starters into the create React equivalent. So even the Vite team is saying, that's not really what we want. That's not the right path.

14. Merging Remix into React Router

Short description:

The new create React app has to come deep from within the React community. We're merging Remix into React Router to create a unified framework. This allows for easier migration and upgrading to a new major version. React Router 7 embodies the full vision of Remix. Let's focus on the new Create React app and leave Remix and React Router behind for now.

The new create React app, the new one, not the replacement, the new create React app has to come deep from within the React community. And so that's why we actually have that little Remix option at the bottom, is because once we released spawn mode, he followed through, and we got to put that option in there.

So recently I've been joking about it, maybe you haven't caught on exactly, but we have this little bit of a branding issue, which is really fun as the dev role person, right? We're actually merging Remix into React Router. The reason that we're doing that is because React Router's always been, rather Remix has always been React Router, the framework. That's really what we could have called it and would have been just as true. We've been building migration paths so that people on React Router can get to Remix very, very easily.

We made that migration path way too good, and they are the same project now, essentially. Especially with the Vite plug-ins. We just got to this point where it's the same project, essentially. We have two versions of it and that really doesn't make any sense. Plus for all the React Router users, we want them to be able to migrate more easily. Migrating is a much different conversation. Rather, I said that wrong. We want them to upgrade really easily to a new major version. Upgrading to a major version is a very different conversation than migrating to a framework. If you want to learn more about this, I would recommend reading this blog, Merging Remix and React Router. And then Ryan Florence gave a really good talk talking all about the motivation here, so I'm not going to go into all the details. More just trying to say that React Router 7 is our full vision of everything we wanted Remix to be and more. So what should this new Create React app do? Let's take a step back. Let's forget Remix and React Router and all that for a second.

15. Key Features of a New Create React App

Short description:

I believe a new Create React app should make it easy to get started with React, provide solutions for code splitting, routing, data fetching, and generating HTML. It should be up to date on the latest React features, have good community buy-in, and a defined future.

I just want to say what I think a new Create React app should have. I don't think that Remix is 100% there. I made the cheeky title, but I actually think I was wrong too. So what should the new Create React app have? So I think the new Create React app should make it easy to get started with React. Can't lose that. That's still got to be true, right? What are we doing if we've lost that piece of it? Should have solutions for code splitting, routing, data fetching and generating HTML straight from the React docs. That's like the four big things that you should have out of the box that your framework is doing. You're going to build that otherwise. Be nice if you can just do it. A lot of stuff is related to routing anyway. It should be up to date on the latest React features. React Scripts is not up to date on the latest React features. All right. I'm running out of time. I'm going to go through these. Have good community buy in and also have a defined future. So how easy is this? We're talking about getting started with the getting started experience. We already talked about this being incredibly easy. This is not much different. It's the same thing.

16. The Remix App and React Router

Short description:

Getting started with the Remix app is on beat. React Router will look the same. API is not final. We want it to be a plugin for an incredibly simple experience. With the plugin, Remix will make code splitting, routing, data fetching, and generating HTML easier. V7 will support SSR, client-side rendering, and RSEs. We prefer the term 'static free rendering'.

It's just a little bit longer on that first line. This is the experience with Remix. Getting started with the Remix app is this on beat. And when we go to React Router, it will look like this. It's no different. API is not final. That slash dev might be called something else. I don't know.

We want it to be a plugin. Incredibly simple getting started experience. What about the code splitting and routing and data fetching and generating HTML? We have all that stuff. We have a built into React Router. Remix with this plugin is going to make it a lot easier. And with V7, which is coming pretty soon, we're also going to support not just SSR and client side rendering, but RSEs.

It's a very interesting topic. Server actions, of course. Static free rendering, static site generation is how you hear that. We don't like that term. We like static free rendering because it makes more sense.

17. The Influence of Remix and React Router

Short description:

We like static free rendering because it makes more sense. People have been complaining that React Router isn't type safe, but you don't have to use it. We'll stay up to date with the latest React features and continue to gain traction. Roughly half of React websites use React Router.

We like static free rendering because it makes more sense. And type safety. Just to throw that in there. People have been complaining forever that React Router isn't type safe and threatening that they're not going to use it anymore. Which is okay. You don't have to use our stuff. I think it's good.

So we're coming along with all this stuff. And we're going to stay up to date on the latest React features. We'll have support for React 18 still and React 19 and React components and the compiler. And the community buy-in piece, this is it. This is the reason. Remix is at the bottom there. It's just that Y-axis is so messed up you can't even tell. We have been gaining traction.

Remix is doing well. It's been influential more so than doing numbers or whatever. But the true unsung hero is React Router. Roughly if these numbers are to be trusted, roughly half of the React websites, so React DOM usage has React Router coupled with it. That's a lot of applications.

18. The Focus on React Router

Short description:

We believe React Router is where we should be focusing. It's more vanilla and not locked into a framework. React Router is the new create React app. I want you to tell me what's missing.

That's where we want to focus our energy. This has been really fun and really influential. But we just believe that React Router is really where we should be focusing. Because it's just a lot easier. It's more vanilla. It's more of that you're not locked into a framework anymore. You're using this library. And if you want the framework in pieces, then use this vplugin. That's all it is. That to me is a lot simpler than trying to pick tribal I'm a remix fan, I'm a this other thing fan, all that stuff.

So React Router is the new create React app, right? At least I think that... It didn't go through. I think that React Router is the new create React app. This is my opinion. And the nice thing about opinions is you can tell me I'm wrong. I actually genuinely want you to come try and change my mind. More specifically than that, I don't want you to change my mind. I actually just want you to tell me what's missing.

So this QR code has a genuine form. You can come talk to me afterwards, of course.

QnA

Audience Questions and Shopify's Use of Remix

Short description:

Fill out the form with your feedback. QR code available. Moving on to audience questions. Shopify does not use remix for admin. It's a React router application built on React router six.

But if you're online, I'd love you to fill out this form. I tried to make it very simple and very quick just to say, hey, if you agreed with everything I said, awesome. If you disagreed, though, please give me specifics. What do you think that we're missing that would allow you to say, like, yeah, no, I agree. It's a new create React app. It's a remix. Thank you so much for your time.

I'm going to put that QR code back up one more time just so you have it. Let's jump into the audience questions. First question is from Chris Brooks. What ceilings have Shopify... Sorry, common mistake. I do it too. Shopify run into running remix in production at scale. Is remix used for Shopify admin? That's a great question. So I'll answer the end of that. No, remix is not used for Shopify admin. Shopify admin is a, like, five million line React router application. It is built on React router six something something. It's using those data APIs that we have.

Shopify's Use of Remix and Current Issues

Short description:

Shopify has actively worked on moving to remix but is currently focused on getting to React router 7. They use remix in several places, including shop.app, embedded apps, and Hydrogen. Issues and ceilings are quickly fixed, and they are working on fixing a recent issue with the manifest for shopify.com.

There are specific reasons that they haven't been able to move to remix and things that we have actively worked on. But at this point, the path forward is for them to get to React router 7 and they're fully aligned in that. Where we have used it is shop.app is a fully built, like, e-commerce website that completely uses remix from Shopify. We have Shopify embedded apps, first party and third party, that you can build with remix. Hydrogen completely uses remix. So there are a lot of great e-commerce stores built on hydrogen that are using remix. So we use it at a lot of places in Shopify. And yeah, every time we run into an issue or a ceiling or whatever, it's been pretty quickly fixed. An example of that is fog of war is something that we're working on right now that fixes shopify.com. It has this big issue with the manifest and that's a very recent thing that we're about to ship.

The Future of Remix Branding and React Router

Short description:

The remix branding is not disappearing. The focus is on completing React router 7 and reserving remix for a different framework build. React router and remix are not the same project.

All right, thanks. If you're stepping out, please try to keep your voice down so we can understand each other here. Thank you.

Next question is from, it's a hard name, Metin Parzinski. So is the remix branding going to disappear now?

Yeah. No, not at all. Great question. Yeah, we've tried to clarify this a number of times. And I meant to say something in the talk, but again, this talk wasn't really about the remix React merger. The brand is not dying. What we're doing is we're trying to say everything that we've been building, we think fits best in React router. And so we are completing the React router arc seven, you know, number of completion. We're trying to get to that end. And with remix, what we're trying to do is we're actually reserving it for a RSC first build of what a framework could look like. So it's going to look pretty different than what we've been doing with React router. And we didn't want to do this thing where we'd have remix v3 and then remix v4 is just completely different thing. That you're just like... They're not even the same project. So instead of trying to pretend that they're the same project, we're just actually saying they're not the same project. This is what React router is.

React Router Breaking Changes and the New Remix

Short description:

We're not getting rid of the project. React router breaking changes make migration difficult. The new remix is aimed at handling those issues.

And we have another project coming down the road. But no, we're not getting rid of it. I have a bunch of swag, actually. Please come grab the swag afterwards, because I don't want to take it back to America.

Okay. Good, good. Thanks. Next question. React router breaking changes are making it hard to migrate from version to version. How good is the new remix to handle those issues? Migration is the stop factor.

Yeah, that's a great question. So we're pretty obsessed on breaking changes. And I definitely... Yeah. I would love to hear... When people say this, it would be really helpful when you're giving this feedback to tell us specifically what the problems you've had are. Because I agree. React router v4 to v5 was a terrible breaking change. The reality is, I wasn't even an engineer when that happened. Or I was just starting.

React Router v6 and Remix Upgrade

Short description:

React router v6 has been around for several years with no breaking changes. The upgrade from remix v1 to v2 was described as boring and easy. The plan now is to provide bridge APIs and migration guides.

Most of the people in this room honestly didn't actually go through that. If you just heard that from Reddit, then I would ask you to stop just repeating things you hear from Reddit.

Now, if you've actually gone through difficult breaking changes with React router, I'd absolutely love to hear that.

But what we've done is from v5 to v6, there's a complete... We had to rebuild it on hooks. Every single major React library did the exact same thing at that time.

And what we did is we tried to actually create APIs and bridge APIs at the time. And I say we, this was way before I was even on the team.

React router v6 has been around for several years at this point. No breaking changes. We added layers to get you to the data fetching from the routers. So we've had that migration path all the time.

We're talking about remix, the remix v1 to v2 upgrade. We use these things called future flags.

And for everyone we talked to, when they upgraded from v1 to v2, the word they used was boring. It was just a boring upgrade. When they're all on the v3 flags, or v2 flags, once they're ready, it was a very easy upgrade.

So that's the exact same thing we're gonna do now. We're gonna provide APIs that are bridge APIs. We're gonna have great migration guides.

React Router 7 Migration and Middleware Support

Short description:

Upgrading from Remix to React Router 7 will be simple. The upgrade from React Router, depending on your current version, can also be straightforward. React Router 7 won't have middleware support in 7.0, but it is planned for 7.1. The migration path is being kept simple to avoid complexity. Middleware will be supported easily once React Router 7.0 is released.

We're gonna code mod as much as we possibly can. If you're using remix right now, going from remix to React router 7, it would be incredibly simple. If you're using React router, it's a more nuanced story, because it just depends where you're at with React router, because it has a 10 year history. So we'd have to talk about where you're at. But if you're on React router and you've been using the latest and greatest, it's also gonna be incredibly simple to upgrade.

Yeah, the smaller the difference, the easier to upgrade, of course. Yeah.

All right, next question from Lucas. Will React router 7 have support for middlewares? Yes, with an asterisk. We're not gonna do it in 7.0. I'm very sad. I really wish that we would. I think it's gonna be a 7.1. Basically, we're at this point where we already have a lot of new features we're trying to add and anything else. We're creating more complexity, more opportunity for the migration path to be difficult. So what we're doing is we're trying to get 7.0 out as soon as possible. And the nice thing is, everything is built for middleware to work really easily. We already have the patterns in place and everything, so it should be pretty easy. And when we've been in a steady place with a new version, it's been about two-week release cycles to get to a new version. So I feel very confident that once we're at 7.0, it will be really easy to get to middleware in that next minor.

Lucas's Middleware Needs and Migrating to SSR

Short description:

If Lucas needs middleware, they can explore homegrown solutions or consider using Express. Middleware support is available in Express and other platforms. Migrating from Remix SPA mode to SSR is straightforward with a single line change, but be mindful of dependencies on the client-side environment.

So would you recommend Lucas to wait for 7.1, then? I would really need to know what Lucas specifically needs middleware for. Because if you're using something like Express, you already do have middleware. I agree, it's not as ergonomic as what we have. There's also a homegrown middleware solution that Killamon, who's really big in our community, has created. I would maybe recommend looking into that and see if it fixes your issues. I agree, middleware is something really nice, but there's a lot of people who haven't stopped using Remix because there's no middleware support, because there's middleware support in, again, Express and these other places where maybe that's where you should reach first. But I agree, middleware should come. But I just, yeah. If it's the reason you're not using Remix, please explain to me why, because I haven't yet understood that part. Which you can do right after this Q&A in the private Q&A or find him online. Because it's his job to help you. He gets paid to help you, right? Yeah.

All right. How easy will it be to migrate from Remix SPA mode to SSR? Yeah, it's a great question. It's a flip of a bullion. So it's one line change, yeah. Of course, you have to deploy to a server, so I'm being a little bit facetious. But yeah, you just flip it, and then you're immediately server-side rendering everything. And so you do need to check if you're relying on, like, window and all these sorts of things. You do need to go through that and check.

Remix Configuration and Best Practices

Short description:

To configure Remix, simply switch the SPA mode to false. Remix is a good starting point for best practices, as we continuously improve our documentation and consolidate information. If you need any assistance, reach out to us and check our Remix docs and YouTube channel. Many users are using Remix in production, and there is a strong presence of Remix users compared to ReactRouter.

So that piece is normal, but there's nothing you have to do from the configuration side except turn on the bullion of use SPA mode or whatever is false. It was so easy. Your answer was so fast that I thought, I'm not done yet. Yeah. All right.

Next question. I think last question. Is Remix a good starting point to find best practices with Remix? Yeah, that's a great question. It depends what you mean by best practices, but the docs are the best thing we have. If you have trouble with the docs, please let us know because we're always trying to make them better. We're also in a process of... The reason migrations kind of take a while or this upgrade takes a while is because we're also really trying to combine two documentation. That was another issue we had is ReactRouter had some good information, then Remix had other good information. We're really trying to combine and simplify so it will get better. If you feel like we don't have something, then please reach out. But for the most part, the React docs should get you started. And then our... Sorry, the Remix docs, geez. And then the Remix, our YouTube channel has some pretty good content as well if you're more of a video, visual learner. Video kind of guy. All right. Then last question for me. Who here is using Remix in production? Nice. Who's using ReactRouter in production? Yeah. What did you expect? Yeah, yeah. More on the Remix side, actually.

That's all the time we have. So, thanks a lot.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Scaling Up with Remix and Micro Frontends
Remix Conf Europe 2022Remix Conf Europe 2022
23 min
Scaling Up with Remix and Micro Frontends
Top Content
This talk discusses the usage of Microfrontends in Remix and introduces the Tiny Frontend library. Kazoo, a used car buying platform, follows a domain-driven design approach and encountered issues with granular slicing. Tiny Frontend aims to solve the slicing problem and promotes type safety and compatibility of shared dependencies. The speaker demonstrates how Tiny Frontend works with server-side rendering and how Remix can consume and update components without redeploying the app. The talk also explores the usage of micro frontends and the future support for Webpack Module Federation in Remix.
Building Better Websites with Remix
React Summit Remote Edition 2021React Summit Remote Edition 2021
33 min
Building Better Websites with Remix
Top Content
Remix is a web framework built on React Router that focuses on web fundamentals, accessibility, performance, and flexibility. It delivers real HTML and SEO benefits, and allows for automatic updating of meta tags and styles. It provides features like login functionality, session management, and error handling. Remix is a server-rendered framework that can enhance sites with JavaScript but doesn't require it for basic functionality. It aims to create quality HTML-driven documents and is flexible for use with different web technologies and stacks.
Don't Solve Problems, Eliminate Them
React Advanced 2021React Advanced 2021
39 min
Don't Solve Problems, Eliminate Them
Top Content
Kent C. Dodds discusses the concept of problem elimination rather than just problem-solving. He introduces the idea of a problem tree and the importance of avoiding creating solutions prematurely. Kent uses examples like Tesla's electric engine and Remix framework to illustrate the benefits of problem elimination. He emphasizes the value of trade-offs and taking the easier path, as well as the need to constantly re-evaluate and change approaches to eliminate problems.
Full Stack Components
Remix Conf Europe 2022Remix Conf Europe 2022
37 min
Full Stack Components
Top Content
RemixConf EU discussed full stack components and their benefits, such as marrying the backend and UI in the same file. The talk demonstrated the implementation of a combo box with search functionality using Remix and the Downshift library. It also highlighted the ease of creating resource routes in Remix and the importance of code organization and maintainability in full stack components. The speaker expressed gratitude towards the audience and discussed the future of Remix, including its acquisition by Shopify and the potential for collaboration with Hydrogen.
Remix Flat Routes – An Evolution in Routing
Remix Conf Europe 2022Remix Conf Europe 2022
16 min
Remix Flat Routes – An Evolution in Routing
Top Content
Remix Flat Routes is a new convention that aims to make it easier to see and organize the routes in your app. It allows for the co-location of support files with routes, decreases refactor and redesign friction, and helps apps migrate to Remix. Flat Folders convention supports co-location and allows importing assets as relative imports. To migrate existing apps to Flat Routes, use the Remix Flat Routes package's migration tool.
How React Router Became a Framework
React Advanced 2024React Advanced 2024
31 min
How React Router Became a Framework
Top Content
My name is Mark Dalglish and I'm here to discuss how ReactRouter became a framework. Remix is built on ReactRouter and heavily relies on it. Remix feels like a framework because it has a CLI, manages the dev and build lifecycle, and has strong opinions about the file system structure. Remix embraced Vite as a plugin, allowing developers to integrate it seamlessly into their existing Vite setup. The shift to Vite led to a change in the philosophy of Remix Vite, enabling frameworks to orchestrate all the environment builds and make the framework as a plugin pattern first class. React Router is merging with Remix to make all the build time framework features available to React Router consumers. React Router is now officially a framework as well as a library. The move to integrate Remix into React Router is driven by the exploration of the next generation of Remix. React Router V7 simplifies by dropping the React Native layer and allows flexibility for consumers to use it as a library or as a framework with additional architectural features provided by plugins. The focus is on betting on Vite in the long term, and React Router plans to support React Server components. Thank you to Mark for answering the questions.

Workshops on related topic

Remix Fundamentals
React Summit 2022React Summit 2022
136 min
Remix Fundamentals
Top Content
Workshop
Kent C. Dodds
Kent C. Dodds
Building modern web applications is riddled with complexity And that's only if you bother to deal with the problems
Tired of wiring up onSubmit to backend APIs and making sure your client-side cache stays up-to-date? Wouldn't it be cool to be able to use the global nature of CSS to your benefit, rather than find tools or conventions to avoid or work around it? And how would you like nested layouts with intelligent and performance optimized data management that just works™?
Remix solves some of these problems, and completely eliminates the rest. You don't even have to think about server cache management or global CSS namespace clashes. It's not that Remix has APIs to avoid these problems, they simply don't exist when you're using Remix. Oh, and you don't need that huge complex graphql client when you're using Remix. They've got you covered. Ready to build faster apps faster?
At the end of this workshop, you'll know how to:- Create Remix Routes- Style Remix applications- Load data in Remix loaders- Mutate data with forms and actions
Building High-Performance Online Stores with Shopify Hydrogen and Remix
React Advanced 2023React Advanced 2023
104 min
Building High-Performance Online Stores with Shopify Hydrogen and Remix
WorkshopFree
Alexandra Spalato
Alexandra Spalato
I. Introduction- Overview of Shopify Hydrogen and Remix- Importance of headless e-commerce and its impact on the industry
II. Setting up Shopify Hydrogen- Installing and setting up Hydrogen with Remix- Setting up the project structure and components
III. Creating Collections and Products- Creating collections and products using Hydrogen’s React components- Implementing a Shopping Cart- Building a shopping cart using Hydrogen’s built-in components
VI. Building the home page with Storyblok- Cloning the space and explaining how it works- Implementing Storyblok in the repo- Creating the Blok components- Creating the Shopify components- Implementing personalisation
Back to the Roots With Remix
React Summit 2023React Summit 2023
106 min
Back to the Roots With Remix
Workshop
Alex Korzhikov
Pavlik Kiselev
2 authors
The modern web would be different without rich client-side applications supported by powerful frameworks: React, Angular, Vue, Lit, and many others. These frameworks rely on client-side JavaScript, which is their core. However, there are other approaches to rendering. One of them (quite old, by the way) is server-side rendering entirely without JavaScript. Let's find out if this is a good idea and how Remix can help us with it?
Prerequisites- Good understanding of JavaScript or TypeScript- It would help to have experience with React, Redux, Node.js and writing FrontEnd and BackEnd applications- Preinstall Node.js, npm- We prefer to use VSCode, but also cloud IDEs such as codesandbox (other IDEs are also ok)
How to Solve Real-World Problems with Remix
Remix Conf Europe 2022Remix Conf Europe 2022
195 min
How to Solve Real-World Problems with Remix
Workshop
Michael Carter
Michael Carter
- Errors? How to render and log your server and client errorsa - When to return errors vs throwb - Setup logging service like Sentry, LogRocket, and Bugsnag- Forms? How to validate and handle multi-page formsa - Use zod to validate form data in your actionb - Step through multi-page forms without losing data- Stuck? How to patch bugs or missing features in Remix so you can move ona - Use patch-package to quickly fix your Remix installb - Show tool for managing multiple patches and cherry-pick open PRs- Users? How to handle multi-tenant apps with Prismaa - Determine tenant by host or by userb - Multiple database or single database/multiple schemasc - Ensures tenant data always separate from others
Building a Realtime App with Remix and Supabase
Remix Conf Europe 2022Remix Conf Europe 2022
156 min
Building a Realtime App with Remix and Supabase
Workshop
Jon Meyers
Jon Meyers
Supabase and Remix make building fullstack apps easy. In this workshop, we are going to learn how to use Supabase to implement authentication and authorization into a realtime Remix application. Join Jon Meyers as he steps through building this app from scratch and demonstrating how you can harness the power of relational databases!
Localizing Your Remix Website
React Summit 2023React Summit 2023
154 min
Localizing Your Remix Website
WorkshopFree
Harshil Agrawal
Harshil Agrawal
Localized content helps you connect with your audience in their preferred language. It not only helps you grow your business but helps your audience understand your offerings better. In this workshop, you will get an introduction to localization and will learn how to implement localization to your Contentful-powered Remix website.
Table of contents:- Introduction to Localization- Introduction to Contentful- Localization in Contentful- Introduction to Remix- Setting up a new Remix project- Rendering content on the website- Implementing Localization in Remix Website- Recap- Next Steps