Тёмный

Create a React App WITHOUT Create React App 

WittCode
Подписаться 13 тыс.
Просмотров 53 тыс.
50% 1

Create a React App from scratch without using create-react-app. Learn about webpack, babel, react, and react-dom.
👩‍💻 Download Code 👨‍💻
wittcode.com
🛜 Download My Chrome Extension 🛜
chromewebstore.google.com/det...
💻 Compare Laptop Specs 💻
laptopspectable.com
🔴 Rare Pokemon Cards ⚪️
rarepokemoncards.com
👻 90s Nostalgia 👻
goosebumpsforsale.com
⌛Timestamps⌛
0:00 - Introduction
0:12 - What is Create React App?
0:48 - Why not use Create React App?
1:15 - What do we need to Create a React Application?
2:13 - What is a Transpiler? Why do we need one?
2:49 - What is a Module Bundler? Why do we need one?
3:18 - What Transpiler will we be using? What is Babel?
3:40 - What Module Bundler will we be using? What is webpack?
4:14 - Initializing Project as an NPM Project
4:54 - Installing React
5:06 - Installing react-dom. What is react-dom?
5:46 - Installing webpack. What is webpack?
6:16 - Installing webpack-cli. What is webpack-cli?
6:46 - Installing webpack-dev-server. What is webpack-dev-server?
7:14 - Installing @babel/core. What is @babel/core?
7:42 - Installing babel-loader. What is babel-loader?
8:34 - Installing @babel/preset-react. What is @babel/preset-react?
9:21 - Installing @babel/preset-env. What is @babel/preset-env?
9:51 - Installing html-webpack-plugin. What is html-webpack-plugin?
10:19 - What our package.json File should look like
10:33 - Creating our webpack Configuration File
11:21 - Telling webpack the Entry Point of our Application
12:19 - Creating our Entry Point File
13:36 - Creating a React Component
15:08 - Telling webpack where to Place our Production Build
16:42 - Telling webpack where to Place our Bundled Files
18:17 - Configuring our webpack Loaders
20:55 - Creating a npm start Script
22:45 - Debugging
23:11 - Demonstrating our Development Environment
23:48 - Creating a npm run build Script
24:39 - Demonstrating our Production Build
25:47 - Outro

Опубликовано:

 

28 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 103   
@aaaaanh
@aaaaanh 2 года назад
Been doing web dev for quite a while with react but from this tutorial, I realize that I knew nothing about web dev. Really appreciate the clear and succinct demystification of the concepts and tools.
@vosyasabesquien
@vosyasabesquien 2 года назад
this is one of the best 'use react without CRA' tutorials i found on youtube. So simple and so clear.
@filipesommer8253
@filipesommer8253 2 года назад
4k subscribers and yet explains this better than anything I've seen on the internet. Keep up the sublime work, you are fantastic!
@Psych0ticCamel
@Psych0ticCamel 2 года назад
Really excellent tutorial, definitely the best one I have seen on this particular topic. I really appreciate how you explain the purpose of each dependency, especially the roles of Webpack and Babel. Love having such a lightweight boilerplate-free React foundation. Cheers!
@vinaysings7509
@vinaysings7509 Год назад
really loved the way you explained everything in a crisp and concise yet detailed way. thanks a ton.
@bigdamo21635
@bigdamo21635 Год назад
Great video! Very clearly explained and you've laid out the info in an easily digestible manner. Easy as to follow.
@jeramos409
@jeramos409 Год назад
Solid explanation of how each piece fits together. Love it.
@Beastintheomlet
@Beastintheomlet Год назад
This single handed filled in so many gaps in my understanding post bootcamp. It wasn’t until recently I came to understand just how much create-react-app not only abstracts away but actively hides from you.
@shahistaahmed4554
@shahistaahmed4554 2 года назад
Thank you. I was really struggling with create-react-app. This really saved my time.
@lucasalves1068
@lucasalves1068 Год назад
Heeey, this is a hugely valuable tutorial. It's easy to get used to CRA and not to explore custom settings in a development environment. I'm not that experienced, so walkthrough bundling and transpiling configs were like a peak into what's going on "under the hood" to me.
@doubleclickZA
@doubleclickZA Год назад
There was no way I could have done it on my own. Thank you. You deserve 100x views!
@eyondev
@eyondev 2 года назад
This video was super helpful!! The thing that has always drawn me away from doing projects in javascript is the amount of abstraction required to start a project and how long create-react-app takes to run. I've followed along with the video, so I hope this reduces my internal reluctance to try out thing in new javascript projects (coming from a backend python dev)
@Mikelon797
@Mikelon797 Год назад
Hey man, amazing job, for real! I learnt a ton, I really enjoy how you explain every concept and step, really insightful. I'll watch more videos from your channel, but keep up the amazing job you are doing ❤
@kazeemkazeem3204
@kazeemkazeem3204 Год назад
Excellent tutorial. love how you explain everything going on, makes for better understanding.Thanks for this.
@prachidiptamishra6189
@prachidiptamishra6189 2 года назад
very detailed and well explained 👏🏻👏🏻 thanks for the tutorial
@azbrestjohn110
@azbrestjohn110 Год назад
Man, if only in the IT school that I was, they had taught me how to create React applications without passing CRA first... Too much abstraction kept me in the dark when using babel and webpack. Great video !
@josecanyousee
@josecanyousee Год назад
I'm glad I didn't take the short cut. It's good to actually know what's going on. Thanks!
@xxxassbeaterxxx
@xxxassbeaterxxx Год назад
THIS TUTORIAL REALLY WORKS I AM FROM PHILIPPINES! THIS MAN DESERVES A SUBSCRIPTION!
@webb-developer
@webb-developer Год назад
this is a must for any web beginner . thank you so much .
@freddiewittmann1494
@freddiewittmann1494 2 года назад
Woooo! A new WittCode video!!!
@PedroGentilOliveira
@PedroGentilOliveira Год назад
Best tutorial I have found so far, worked first try😌. Tried different ones but could never make it work. And the explanations at each step helped greatly. Thanks
@nehanalini1606
@nehanalini1606 2 года назад
Wow! indeed very helpful one. Thanks 🤗
@gm8584
@gm8584 2 года назад
Thanks man, helped a lot, Have a great day!
@JThompson_VI
@JThompson_VI 2 года назад
Very helpful tutorial, thanks man.
@_werther
@_werther Год назад
Thanks man, was awesome
@rafayzia4180
@rafayzia4180 2 года назад
Excellently explained thank you ♥️
@mightydudegrafuroam8424
@mightydudegrafuroam8424 2 года назад
Thanks man! It was super helpful
@alexruedi1995
@alexruedi1995 Год назад
totally scared how few views this video got! great content, well explained, everything to know. It leaves me wondering what else CRA does. (Beside listening to all ports and causing weird effects, hiberfile warnings etc)
@AllNaturale11
@AllNaturale11 Год назад
this was so so helpful! thank you!
@unskilled2023
@unskilled2023 Год назад
Well explained. straightforward
@awabelmahe9700
@awabelmahe9700 Год назад
Wow man, thank you very much, this was very helpful.
@bLitzKinG20
@bLitzKinG20 Год назад
Thank you bro! I learned a lot! Liked and subbed!
@kazmonroy
@kazmonroy Год назад
Thank you so much for this tutorial! I just started learning React and got used to starting my projects with Vite. I was curious how to build everything from scratch and your video worked like a charm! Pretty straight forward. I event made it work with React v18 :) Keep it up!
@jaylearn2671
@jaylearn2671 Год назад
What was wrong when using version 18? It still worked but threw a deprecated reactDOM.render() message in the console. This can be 'fixed' by using createRoot(document.getElementById('root')) from the react-dom/client import.
@ajaygovinds
@ajaygovinds 2 года назад
Really appreciate the effort, learnt from every second of this video. Thank you very much :)
@WittCode
@WittCode 2 года назад
Great to hear Ajay!
@CharlesDeukett
@CharlesDeukett 2 года назад
Great video! helped me with a recent project.
@santoshkharel1083
@santoshkharel1083 Год назад
This very informative, thank you very much for this bro, and I am subscribing. God bless
@sagaayoub
@sagaayoub Год назад
that was helpful brother. thank you.
@lifeisbeautifu1
@lifeisbeautifu1 Год назад
amazing, thank you!
@xx-fw1yq
@xx-fw1yq Год назад
Nice, thanks for uploading 😊😊
@edumaba
@edumaba Год назад
Just got yourself a subscriber! Thank you!
@codedByAyush
@codedByAyush Год назад
The tutorial is super helpful!
@dext430
@dext430 11 месяцев назад
Omg. i did it. Very thank you from East Europe
@maiaayaaoo7
@maiaayaaoo7 2 года назад
Thank you for your explanation
@AwesomeAsh99
@AwesomeAsh99 2 года назад
Great video! Very useful, create-react-app abstracts way too much for someone like me who wants to fully understand react and how to develop with a react environment. Thank you
@gofo9974
@gofo9974 2 года назад
Excellent video Thanks!!!
@hosseinkhalili9758
@hosseinkhalili9758 2 года назад
thank you for this tutorial, keep going on.
@00infinity39
@00infinity39 Год назад
really surprisingly amazing explanation... keep up
@filipjovic6815
@filipjovic6815 Год назад
thanks, great video
@prathameshthorat4709
@prathameshthorat4709 Год назад
Really awesome tutorial. Love from India ❤♥
@codingwithdidem
@codingwithdidem 2 года назад
This video is underrated. DAMN! I learnt a lot thanks
@WittCode
@WittCode 2 года назад
Thanks so much!!
@adad8795
@adad8795 2 года назад
Awesome 🔥
@AyooluwaA
@AyooluwaA Год назад
it's finally ti. i'm ready to learn.
@caro.girlwithflowers
@caro.girlwithflowers Год назад
thank u so much, it was verry usefull
@sohaibelbokhari8319
@sohaibelbokhari8319 7 месяцев назад
Amazing, thks sir
@SerhiiHromskyi
@SerhiiHromskyi Год назад
Great tutorial. Here is an idea for part 2. Could you please extend this with support of different styling approaches like SCSS, CSS modules, CSS in JS, and maybe postCSS autoprefixer plugin?
@tootyrnt5533
@tootyrnt5533 Год назад
I second this, although webpack does have some pretty good documentation for using different loaders
@jman100001591
@jman100001591 Год назад
Great tutorial man really appreciate you explaining a lot of these dependencies. Obviously using CRA you get a million other dependencies so what kind of issues would you run into down the line using this much more simplified install compared to getting everything with CRA?? I'm guessing you'd just need to know any more specific modules for specific use going forward right
@VamviAgripa
@VamviAgripa 2 года назад
Detailed nice..
@essohanamalou7662
@essohanamalou7662 Год назад
your're life saver. having to handle react logo and default style is something that i hate. i prefere having total control on what i'ma doing. i tried this but i didn't test it the way you did it before installing eslint jest and prettier and their plugins. so i've got some errors when compiling and i started thinking that maybe i should use cra or vite anyway. with your explanation i'm sure my problem is in some of my configurations with other libraries. thank you very much.
@miladmohammadi3233
@miladmohammadi3233 Год назад
Awsome :)
@Gin_____
@Gin_____ Год назад
Great tutorial
@jethrocarreon1527
@jethrocarreon1527 Год назад
Thank you
@nicowindows4589
@nicowindows4589 2 года назад
Thanks!
@shubhamagrawal7239
@shubhamagrawal7239 Год назад
Brilliant
@vaibhavbajpai5521
@vaibhavbajpai5521 7 месяцев назад
great content
@drekogrelord
@drekogrelord Год назад
i love you man
@cursedtrousers8735
@cursedtrousers8735 2 года назад
Great video WittCode! By any chance can you make videos of that express series on your website?
@WittCode
@WittCode 2 года назад
Hey there! I am actually working on that now!
@TarekFaham
@TarekFaham Год назад
Fantastic tutorial! How you can develop parts of the application features using this method and integrate it with an existing application that is based on angularjs?
@konstantinvoronin4687
@konstantinvoronin4687 2 года назад
Hello! Thanks for your job. It's great! Could you do a manual on how to configure es-lint and css-lint for react application?
@WittCode
@WittCode 2 года назад
That's a good idea! After I submitted this video I was thinking those wouldve been good to add to the webpack configuration haha
@scoobyflash9768
@scoobyflash9768 Год назад
This was informative. Can anyone explain why this method, Node listens on port 8080, while when using CRA it listens on port 3000?
@scalpertrader61
@scalpertrader61 2 года назад
How to check production build locally ?
@SauravTiru
@SauravTiru Год назад
Can you upload a tutorial with es-build-loader instead of babel? It's tremendously faster in builds.
@MrHarshitp
@MrHarshitp 2 года назад
It was a nice video. I am still not able to load my images and css files. Any help on it?
@sayantanbhowmick3308
@sayantanbhowmick3308 Год назад
how do you add a sample in that you have on your mac already
@tootyrnt5533
@tootyrnt5533 Год назад
Any way you can follow this tutorial with a simple implementation of SSR?
@neerajkanojiya8098
@neerajkanojiya8098 Год назад
Hi WittCode, very very usefull tutorial. I was following this and stuck into one package i.e. express server. Actually I am developing react api with mongo. Can you suggest some thing. For ex. error like: "Can't resolve 'async_hooks'"
@shauryamittal1966
@shauryamittal1966 11 месяцев назад
Where does the port of React server come from? Can we change it?
@py7432
@py7432 4 месяца назад
so what about, css and other static files like img, png etc.? I expected a complete version. : (
@jet7077
@jet7077 Год назад
I feel ya. I've tried Ableton, Reaper, even shelled out for Cubase and I am no closer to understanding any of tNice tutorials than I was before. I don't
@anupsaha8175
@anupsaha8175 Год назад
Did you get fruity or producer edition? Im looking to buy soft soft but i dont know if Producer edition is worth it...
@rohitchandak2482
@rohitchandak2482 Год назад
when we create a react project using the following command: create-react-app The size of the folder turns out to be around 250MB. Guess lots of redundant node_modules are added. I was wondering how much would be the size of folder when produced the minimal way you have shown in this video? I have challenged my-self to make a react-app pick node modules from globally installed modules on my hard drive. Struggling no luck so far.
@HanWae363
@HanWae363 Год назад
Not me thinking CLI was C Language Integration prior to this video
@qismettagiyev3957
@qismettagiyev3957 2 года назад
npm start output: usr/bin/env: no such file directory Reply please
@laded2807
@laded2807 Год назад
I get an error: "Cannot GET /"
@salmanrazzaq5167
@salmanrazzaq5167 2 года назад
😍
@WittCode
@WittCode 2 года назад
🤠
@AllNaturale11
@AllNaturale11 Год назад
Hey so im doing this again a few months after my initial comment and I'm stuck at the run build section. It's not working. It worked in the past but I don't know what the issue is. Can anybody help me?
@_ademmeral
@_ademmeral 6 месяцев назад
nice title :D :D :D
@xtraszone
@xtraszone 7 месяцев назад
We have a bun now, which is even faster than vite
@cancatalbas5747
@cancatalbas5747 Год назад
Hello, I have a problem I improve react project and i must data export for excel. Everything very good but then i gave jszip is not a consructure. I researched this error. and faund i can configure webpack. I went nodemodules>react-scripts and i faund webpack.config.js but i did not configure because there very complextive. Please help me bro
@gavrshchuk
@gavrshchuk Год назад
Why all these dev tools like webpack, prettier, eslint, stylelint, babel, jest, storybook, and others should be a part of your app? It is like creating your own unique code editor for each new project. It makes sense to have only source code in your project. All these dev tools should be distributed separately as docker containers for example and you can run this docker container against your project's source code in order to build, test, start, lint.
@sonhoang2392
@sonhoang2392 Год назад
How's it going? Did you learn how to use it?
@CrimsonSwitz
@CrimsonSwitz Год назад
Where your part2 video???
@danielasepulveda9942
@danielasepulveda9942 Год назад
Aweso tutorial but I dont have a snare anywhere on my list. Wtf
@zlackbiro
@zlackbiro 2 года назад
You can't do better then Vite.
@farzanekazemi7458
@farzanekazemi7458 Год назад
awesome man!!!!!!!!!!!!!!!!!
@SameeraSenarathna
@SameeraSenarathna Год назад
Good Stuff. Keep up the good work.
@DanielGarcia-vc7ci
@DanielGarcia-vc7ci Год назад
what the specific usage of @babel/core, wasn't use in webpack.config.js, Is it neccesary?
Далее
Webpack Targets
2:43
Просмотров 133
Самоприкорм с сестрой 😂
00:19
Просмотров 298 тыс.
Спасибо Анджилишка, попил😂
00:19
React Webpack Setup From Scratch
20:53
Просмотров 58 тыс.
7 better ways to create a React app
7:08
Просмотров 523 тыс.
Did RSCs Really Turn React Into PHP?
18:48
Просмотров 35 тыс.
Create A React App Without Create-React-App
18:47
Просмотров 29 тыс.
How React ACTUALLY works (DEEP DIVE 2023)
12:59
Просмотров 51 тыс.
React Query Makes Writing React Code 200% Better
13:54
Просмотров 178 тыс.
Webpack crash course | easy way
32:07
Просмотров 55 тыс.
I tried React and it Ruined My Life
1:19:10
Просмотров 116 тыс.
The ARCH LINUX Experience
34:30
Просмотров 89 тыс.