Fireship · @fireship

I built the same app 10 times // Which JS Framework is best?

Uploaded August 11, 2021 · Length 21:58

I built the same app 10 times // Which JS Framework is best?

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.

  1. 0:00

    which javascript framework is the best

  2. 0:02

    if we go off of downloads react wins but

  3. 0:04

    based on github stars view is the best

  4. 0:06

    but svelt is the most loved framework

  5. 0:08

    according to the 2021 stack overflow

  6. 0:10

    survey and some people out there might

  7. 0:12

    even tell you that you don't need a

  8. 0:13

    javascript framework and whether you're

  9. 0:14

    a new developer or have 20 years of

  10. 0:16

    experience it can be very difficult to

  11. 0:18

    choose which framework you want to marry

  12. 0:19

    which is the single most important

  13. 0:21

    decision you'll make related to your

  14. 0:22

    frontend code there's no absolute best

  15. 0:24

    framework and the only way to find out

  16. 0:26

    which one will make you happy is to

  17. 0:27

    build something with all of them in

  18. 0:29

    today's video we'll build the same app

  19. 0:30

    with 10 different javascript frameworks

  20. 0:32

    including angular react vue svelt lit

  21. 0:36

    alpine solid stencil mithril and vanilla

  22. 0:39

    in the process you'll learn the

  23. 0:40

    trade-offs between each of these

  24. 0:41

    frameworks so you can make the best

  25. 0:43

    choice for your next project this video

  26. 0:45

    was a ton of work so make sure to

  27. 0:46

    subscribe and hit the like button then

  28. 0:48

    leave a comment below with your favorite

  29. 0:49

    framework and i'll choose a few random

  30. 0:51

    ones to win a free t-shirt next week the

  31. 0:53

    first thing we'll do is build a basic

  32. 0:55

    to-do app with vanilla javascript about

  33. 0:57

    once a year a hot take will go viral

  34. 0:59

    saying that you don't need a javascript

  35. 1:01

    framework at all any expert web

  36. 1:02

    developer needs to have a solid

  37. 1:04

    understanding of vanilla js but even if

  38. 1:06

    you're a javascript god attempting to

  39. 1:08

    build a non-trivial app with it is a

  40. 1:10

    recipe for disaster what you'll end up

  41. 1:12

    doing is building your own shitty

  42. 1:14

    javascript framework and the last thing

  43. 1:15

    the world needs is another javascript

  44. 1:17

    framework to build an app from scratch

  45. 1:19

    all we have to do is create an html file

  46. 1:21

    then add a script tag to the body what

  47. 1:23

    we want to build here is a to do app

  48. 1:25

    where the user can write some text into

  49. 1:27

    a form input then submit the form and

  50. 1:29

    have that item appear in the list in

  51. 1:31

    addition we'll save those items to local

  52. 1:33

    storage as kind of a mock database so

  53. 1:36

    that when the user refreshes the page

  54. 1:38

    those items are still present pretty

  55. 1:40

    simple concept but there's actually a

  56. 1:41

    lot going on there like state management

  57. 1:44

    data binding events and the application

  58. 1:46

    life cycle to think about the one thing

  59. 1:48

    that all frameworks do and vanilla js

  60. 1:50

    doesn't is provide a way to bind or

  61. 1:53

    connect your html to the javascript

  62. 1:55

    automatically in vanilla we need to

  63. 1:57

    imperatively grab the html elements that

  64. 1:59

    we're working with from the dom and i