Remix — The New Create React App

Rate this content
Bookmark

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.

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.

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 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.

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.

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.

QnA

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

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 Conference 2021React Advanced Conference 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.
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.
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.
Remix Architecture Patterns
Remix Conf Europe 2022Remix Conf Europe 2022
23 min
Remix Architecture Patterns
Top Content
This Talk introduces the Remix architecture patterns for web applications, with over 50% of participants using Remix professionally. The migration from single page applications to Remix involves step-by-step refactoring and offers flexibility in deployment options. Scalability can be achieved by distributing the database layer and implementing application caching. The backend for frontend pattern simplifies data fetching, and Remix provides real-time capabilities for collaborative features through WebSocket servers and Server-SendEvents.

Workshops on related topic

Remix Fundamentals
React Summit 2022React Summit 2022
136 min
Remix Fundamentals
Top Content
Featured WorkshopFree
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
Back to the Roots With Remix
React Summit 2023React Summit 2023
106 min
Back to the Roots With Remix
Featured 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
Featured 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
Build and Launch a personal blog using Remix and Vercel
Remix Conf Europe 2022Remix Conf Europe 2022
156 min
Build and Launch a personal blog using Remix and Vercel
Featured Workshop
Robert Pop
Robert Pop
In this workshop we will learn how to build a personal blog from scratch using Remix, TailwindCSS. The blog will be hosted on Vercel and all the content will be dynamically served from a separate GitHub repository. We will be using HTTP Caching for the blog posts.
What we want to achieve at the end of the workshop is to have a list of our blog posts displayed on the deployed version of the website, the ability to filter them and to read them individually.
Table of contents: - Setup a Remix Project with a predefined stack- Install additional dependencies- Read content from GiHub- Display Content from GitHub- Parse the content and load it within our app using mdx-bundler- Create separate blog post page to have them displayed standalone- Add filters on the initial list of blog posts
Building High-Performance Online Stores with Shopify Hydrogen and Remix
React Advanced Conference 2023React Advanced Conference 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
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!