Fireship · @fireship
7 better ways to create a React app
Uploaded February 3, 2023 · Length 7:08
Summary
7 alternative ways to create a React app, including instant development environments, build tools, and rendering frameworks.
- react app creation
- create react app alternatives
- instant development environments
- react build tools
- react rendering frameworks
- next js
- remix
- gatsby
- astro
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
POV you're brand new to web development
- 0:02
and you want to learn react.js most of
- 0:04
the tutorials and even chat GPT tell you
- 0:07
to use an official tool called create
- 0:08
react app but it's a trap if you use it
- 0:11
you already failed your react developer
- 0:12
admissions test and as punishment you
- 0:14
now need to go learn ember.js
- 0:18
bloggers and YouTubers have been warning
- 0:20
people against create react app for
- 0:22
quite a while but the discussion really
- 0:23
heated up with this pull request from
- 0:25
Theo suggesting the removal of this tool
- 0:27
from the react docs altogether Dan from
- 0:29
the react team responded with five
- 0:30
different potential options to salvage
- 0:32
the sinking ship but what's with all the
- 0:34
hostility in the first place the problem
- 0:36
with it is that it's slow in development
- 0:37
is a pain to set up with popular tools
- 0:39
like tailwind and typescript and most
- 0:41
importantly there are just tons of
- 0:42
better options to get started with react
- 0:44
and the modern ecosystem in today's
- 0:45
video we'll look at seven ways to create
- 0:47
a react app without create react app and
- 0:50
look at the trade-offs so you can choose
- 0:51
the optimal tool for the type of app
- 0:53
you're building the absolute easiest way
- 0:55
to experiment and start learning to
- 0:56
react or any front-end framework is with
- 0:58
an instant development environment like
- 1:00
stack Blitz or code sandbox these are
- 1:02
web-based tools that allow you to run
- 1:04
react in the browser without needing to
- 1:06
manually install a bunch of dependencies
- 1:08
on your system and deal with things like
- 1:09
module bundlers like you literally just
- 1:11
click a button and now you're building a
- 1:13
react app it also has the added benefit
- 1:15
of being easily shareable so you can
- 1:16
access it from any computer this Tech is
- 1:18
come a long way in the last couple years
- 1:20
and you can even run back end code like
- 1:22
node.js and next.js thanks to web
- 1:24
containers overall this is a great
- 1:26
choice for Learning and prototyping but
- 1:28
if you're building a serious app you'll
- 1:29
need a dedicated build tool to manage it
- 1:31
and this is where decision making gets
- 1:32
tricky the next tool we'll look at is
- 1:34
Veet which is enjoyed a meteoric rise to
- 1:37
the top of the JavaScript build tool
- 1:38
charts over the last year or two if
- 1:40
you're already familiar with create
- 1:41
react app vit is the closest thing to a
- 1:43
one-to-one replacement for it however
- 1:45
it's way faster in development because
- 1:47
it builds your application on Demand
- 1:48
with tools like native es modules and Es
- 1:51
build that just scale way better for big
- 1:53
projects and as of a few weeks ago you
- 1:55
can use swc instead of Babel which is a
- 1:57
much faster rust based compiler it uses
- 1:59
roll up for module bundling as opposed


