Fireship · @fireship
I built the same app 10 times // Which JS Framework is best?
Uploaded August 11, 2021 · Length 21:58
Summary
Building a to-do app with 10 different JavaScript frameworks, including React, Angular, Vue, Svelte, and more, to compare their trade-offs and make the best choice for your next project.
- javascript frameworks
- react
- angular
- vue
- svelte
- javascript
- web development
- programming
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
which javascript framework is the best
- 0:02
if we go off of downloads react wins but
- 0:04
based on github stars view is the best
- 0:06
but svelt is the most loved framework
- 0:08
according to the 2021 stack overflow
- 0:10
survey and some people out there might
- 0:12
even tell you that you don't need a
- 0:13
javascript framework and whether you're
- 0:14
a new developer or have 20 years of
- 0:16
experience it can be very difficult to
- 0:18
choose which framework you want to marry
- 0:19
which is the single most important
- 0:21
decision you'll make related to your
- 0:22
frontend code there's no absolute best
- 0:24
framework and the only way to find out
- 0:26
which one will make you happy is to
- 0:27
build something with all of them in
- 0:29
today's video we'll build the same app
- 0:30
with 10 different javascript frameworks
- 0:32
including angular react vue svelt lit
- 0:36
alpine solid stencil mithril and vanilla
- 0:39
in the process you'll learn the
- 0:40
trade-offs between each of these
- 0:41
frameworks so you can make the best
- 0:43
choice for your next project this video
- 0:45
was a ton of work so make sure to
- 0:46
subscribe and hit the like button then
- 0:48
leave a comment below with your favorite
- 0:49
framework and i'll choose a few random
- 0:51
ones to win a free t-shirt next week the
- 0:53
first thing we'll do is build a basic
- 0:55
to-do app with vanilla javascript about
- 0:57
once a year a hot take will go viral
- 0:59
saying that you don't need a javascript
- 1:01
framework at all any expert web
- 1:02
developer needs to have a solid
- 1:04
understanding of vanilla js but even if
- 1:06
you're a javascript god attempting to
- 1:08
build a non-trivial app with it is a
- 1:10
recipe for disaster what you'll end up
- 1:12
doing is building your own shitty
- 1:14
javascript framework and the last thing
- 1:15
the world needs is another javascript
- 1:17
framework to build an app from scratch
- 1:19
all we have to do is create an html file
- 1:21
then add a script tag to the body what
- 1:23
we want to build here is a to do app
- 1:25
where the user can write some text into
- 1:27
a form input then submit the form and
- 1:29
have that item appear in the list in
- 1:31
addition we'll save those items to local
- 1:33
storage as kind of a mock database so
- 1:36
that when the user refreshes the page
- 1:38
those items are still present pretty
- 1:40
simple concept but there's actually a
- 1:41
lot going on there like state management
- 1:44
data binding events and the application
- 1:46
life cycle to think about the one thing
- 1:48
that all frameworks do and vanilla js
- 1:50
doesn't is provide a way to bind or
- 1:53
connect your html to the javascript
- 1:55
automatically in vanilla we need to
- 1:57
imperatively grab the html elements that
- 1:59
we're working with from the dom and i


