Fireship · @fireship

7 better ways to create a React app

Uploaded February 3, 2023 · Length 7:08

7 better ways to create a React app

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.

  1. 0:00

    POV you're brand new to web development

  2. 0:02

    and you want to learn react.js most of

  3. 0:04

    the tutorials and even chat GPT tell you

  4. 0:07

    to use an official tool called create

  5. 0:08

    react app but it's a trap if you use it

  6. 0:11

    you already failed your react developer

  7. 0:12

    admissions test and as punishment you

  8. 0:14

    now need to go learn ember.js

  9. 0:18

    bloggers and YouTubers have been warning

  10. 0:20

    people against create react app for

  11. 0:22

    quite a while but the discussion really

  12. 0:23

    heated up with this pull request from

  13. 0:25

    Theo suggesting the removal of this tool

  14. 0:27

    from the react docs altogether Dan from

  15. 0:29

    the react team responded with five

  16. 0:30

    different potential options to salvage

  17. 0:32

    the sinking ship but what's with all the

  18. 0:34

    hostility in the first place the problem

  19. 0:36

    with it is that it's slow in development

  20. 0:37

    is a pain to set up with popular tools

  21. 0:39

    like tailwind and typescript and most

  22. 0:41

    importantly there are just tons of

  23. 0:42

    better options to get started with react

  24. 0:44

    and the modern ecosystem in today's

  25. 0:45

    video we'll look at seven ways to create

  26. 0:47

    a react app without create react app and

  27. 0:50

    look at the trade-offs so you can choose

  28. 0:51

    the optimal tool for the type of app

  29. 0:53

    you're building the absolute easiest way

  30. 0:55

    to experiment and start learning to

  31. 0:56

    react or any front-end framework is with

  32. 0:58

    an instant development environment like

  33. 1:00

    stack Blitz or code sandbox these are

  34. 1:02

    web-based tools that allow you to run

  35. 1:04

    react in the browser without needing to

  36. 1:06

    manually install a bunch of dependencies

  37. 1:08

    on your system and deal with things like

  38. 1:09

    module bundlers like you literally just

  39. 1:11

    click a button and now you're building a

  40. 1:13

    react app it also has the added benefit

  41. 1:15

    of being easily shareable so you can

  42. 1:16

    access it from any computer this Tech is

  43. 1:18

    come a long way in the last couple years

  44. 1:20

    and you can even run back end code like

  45. 1:22

    node.js and next.js thanks to web

  46. 1:24

    containers overall this is a great

  47. 1:26

    choice for Learning and prototyping but

  48. 1:28

    if you're building a serious app you'll

  49. 1:29

    need a dedicated build tool to manage it

  50. 1:31

    and this is where decision making gets

  51. 1:32

    tricky the next tool we'll look at is

  52. 1:34

    Veet which is enjoyed a meteoric rise to

  53. 1:37

    the top of the JavaScript build tool

  54. 1:38

    charts over the last year or two if

  55. 1:40

    you're already familiar with create

  56. 1:41

    react app vit is the closest thing to a

  57. 1:43

    one-to-one replacement for it however

  58. 1:45

    it's way faster in development because

  59. 1:47

    it builds your application on Demand

  60. 1:48

    with tools like native es modules and Es

  61. 1:51

    build that just scale way better for big

  62. 1:53

    projects and as of a few weeks ago you

  63. 1:55

    can use swc instead of Babel which is a

  64. 1:57

    much faster rust based compiler it uses

  65. 1:59

    roll up for module bundling as opposed