STOP Wasting Time! Your Next App Needs Vite! | JS, Typescript, React

  Рет қаралды 68,032

Dave Gray

Dave Gray

Күн бұрын

Пікірлер: 142
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Ahhh this video was supposed to post on Tuesday but I must have missed changing the date. All links and resources are now available in the description. 🚀
@ahmad-murery
@ahmad-murery 2 жыл бұрын
This is no excuse not to post a new video on Tuesday 😁 Vite is really fast and interesting, Thanks Dave,
@musamutetwi1948
@musamutetwi1948 2 жыл бұрын
No, actually Vite is so fast it actually build the video before actual date
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
@@musamutetwi1948 LOL that's funny!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
@@ahmad-murery haha my friend! Maybe so!
@abhishekmazumder2060
@abhishekmazumder2060 2 жыл бұрын
Simple and crisp tutorial. Which font are you using btw? Thanks!
@ScriptRaccoon
@ScriptRaccoon 2 жыл бұрын
What makes Vite so cool is that it immediately updates your changes in the browser. The browser doesn't even need to refresh! So sometimes (for some reason not always) the data from the browser even remains (such as text inputs). This is made possible by HMR - hot module replacement.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Right on!
@mavdotj
@mavdotj 2 жыл бұрын
I use sveltekit and it is kinda fustrating when my stores reset after HMR
@Sifsif__ma
@Sifsif__ma Жыл бұрын
create react app does the same , no ?
@nikoryu-lungma
@nikoryu-lungma Жыл бұрын
@@Sifsif__ma No, it doesn't. The difference is very huge. In ViteJS, it does not install a bunch of packages while creating the app. In React, create-react-app installs a bunch of packages while creating the app. When React reloads, it reloads the whole thing, from top to bottom. It takes very long, and sometimes causes the app to crash. For ViteJS, it did not happen. The packages were lighter, and if you want to install more, you get to decide it. I haven't even mentioned the Server Side Rendering that React does not have
@rycka7260
@rycka7260 7 ай бұрын
@@Sifsif__ma secret behind Vite is that it utilizes websockets, that's why it is so super fast.
@harag9
@harag9 Жыл бұрын
Recently new to the channel going through your react series as I'm a very old school front end developer (html, JQuery). But work has asked me to take over a react project. Vite looks very easy to setup too. Great video and thanks for all the tutorials, they are really easy to follow!
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Glad I could help!
@TVTtheis
@TVTtheis Жыл бұрын
Thanks you for the overview ❤
@chirag-sg4kd
@chirag-sg4kd Жыл бұрын
@Dave Gray I have a question as they say browser can't understand typescript it can only understand JavaScript then how we are writing .ts in our script tag in HTML file.
@konidoniravirr6580
@konidoniravirr6580 2 жыл бұрын
You have a really good voice that i blindly subscribed. Thank you for this big video.😄
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Welcome!
@resulabdulla3825
@resulabdulla3825 Жыл бұрын
thanks you bro, This is awesome toolkit
@ashharkausar413
@ashharkausar413 2 жыл бұрын
That's quick! In your career as an engineer can you give an example or 2 of projects that really challenged you? Was it an ecommerce site you built for someone? Perhaps you were creating some sort content management system or webdev tools such as an ORM. Sky is the limit for this question.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Inheriting a legacy codebase at work built with an OLD version of Adobe's ColdFusion and absolutely no project documentation. It is a hybrid of HTML & SQL combined. Adobe put it out to rival PHP. You don't hear much about it anymore. It has some tricky syntax... like instead of a comment in HTML that is
@ashharkausar413
@ashharkausar413 2 жыл бұрын
@@DaveGrayTeachesCode Sometimes small things are not so small.
@funtrap2289
@funtrap2289 Жыл бұрын
I have issue While save local host not re rendering I search in stack over flow then I added plugin in vite.config file even though it not resolved Please Share the solution
@sergeantsausage2609
@sergeantsausage2609 Жыл бұрын
I was surprised how easy it was to set up a full typescript react project. I was dreading setting up my webpack project, then i tried vite on a whim and was completely up and running in a few minutes.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Right on!
@johnychinese
@johnychinese 2 жыл бұрын
Vite is now Dave Certified 🛡
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
🏆💯
@CatsAndCode
@CatsAndCode 10 ай бұрын
Thats an awesome vide. but can i ask why use windows?
@gilbertardila
@gilbertardila 2 жыл бұрын
Forget about Webpack, no more complications vite is wonderful!!!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Agreed!
@Sifsif__ma
@Sifsif__ma Жыл бұрын
is Webpack difficult to manage ?
@codernerd7076
@codernerd7076 2 жыл бұрын
💯 Vite is amazing just like this video!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thank you!
@Pareshbpatel
@Pareshbpatel Жыл бұрын
This is an excellent introduction to Vite. Thanks, Dave {2023-03-15}, {2023-05-03}, {2023-06-23}
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
You're welcome!
@siosaiafonua9286
@siosaiafonua9286 Жыл бұрын
The question is, do i choose between VITE or Nextjs? I want to build a full stack big app
@marcinzale
@marcinzale 2 жыл бұрын
Great content, as always! Thanks!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
You're welcome! 🙏
@SZaferUlgur
@SZaferUlgur 2 жыл бұрын
Great job.. The installation process was really tiring. Thank you so much.
@klp2513
@klp2513 5 ай бұрын
I still don't get the point of vite (or bundlers in general) as it seems like it is just loading up the server when there is so much unused capacity on the client.
@NathanBudd
@NathanBudd Жыл бұрын
I missunderstood this... how do you use Vite with NextJS?
@AdharshScipy
@AdharshScipy Жыл бұрын
how to take build by rectifying errors and warnings in vite also ts
@sherifashraf8008
@sherifashraf8008 2 жыл бұрын
Keep it up. You are doing a great job.❤
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thank you!
@konnichiwa01
@konnichiwa01 2 жыл бұрын
Yes! Yes! Yes! Dave, you did it again. I was looking for a way to understand vite. Right time, Right Video. I love you (professionally).
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Glad I could help!
@abdulazeez.98
@abdulazeez.98 2 жыл бұрын
I have been hearing about Vite lately, this video made my mind to change to it!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Right on!
@okonkwo.ify18
@okonkwo.ify18 2 жыл бұрын
Thank you Dave. I don’t know if u can help me get a remote job. I practically listen to every video u make and my head is full lol. Am in Nigeria, seems most companies focus on US and Europe
@_MoshikoAz_
@_MoshikoAz_ Жыл бұрын
thanks for the video, im gonna use vite in my next react app, any chance do you have a video explaining how to add noed express backend to the project using vite ?
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
I would make the backend a separate project and just use npm with it. I have a Node.js course on my channel that builds a complete backend REST API.
@hamdiboujarra
@hamdiboujarra 2 жыл бұрын
thank you so much. please steve when dart and flutter?
@fafbk7773
@fafbk7773 Жыл бұрын
Is it from vite labs ??
@anandraj1623
@anandraj1623 Жыл бұрын
How to upload the vite js project onto the docker
@virgiliogervacioestadillo1389
@virgiliogervacioestadillo1389 Жыл бұрын
Hi Dave! Can you make another tutorial with the addition of integrating jest or vite, react testing library and eslint so that it would be easy for us to use it in our future projects.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Great request!
@frankli7035
@frankli7035 2 жыл бұрын
amazing,long time required TS with vite
@bkatsevych
@bkatsevych 2 жыл бұрын
Thanks a lot for another great video! Keep up the good work!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
You're welcome!
@danielrauhut239
@danielrauhut239 Жыл бұрын
Please rename this video, I was searching whether its possible to run a NextJS app on vite and you got my hopes up
@willyhorizont8672
@willyhorizont8672 2 жыл бұрын
This makes me want to migrate my CRA js app to VITE and Typescript 🚀
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Great project!
@faris.abuali
@faris.abuali 2 жыл бұрын
Thank you! Great tutorial
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thank you for the kind words!
@OnePiece_Fandom
@OnePiece_Fandom 2 жыл бұрын
Sir can u plz tell me how can I use it with MERN app and it's safe for production and how can I do it ? Can u plz make a full video on this ?? ❤️❤️
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
This video should provide everything you need to use Vite - and yes, it is safe for production.
@sonamohialdin3376
@sonamohialdin3376 2 жыл бұрын
It is looking very useful frontend tool thank you
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Welcome!
@ewaevva4375
@ewaevva4375 2 жыл бұрын
Dave, what about NestJS ? I'm currently learning it and would like to know your opinion about it, please 🙂
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
I've heard good things! I'd like to cover it in the coming months.
@coderboysobuj
@coderboysobuj 2 жыл бұрын
I have a problem vite with react router dom. It's not Working on server when refresh the page It's shows me server 404 page. I need solution,, please help me
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
It sounds like this is just a react router hosting issue where you need to set the redirect/rewrite rule on the host.
@MeloGrigorian
@MeloGrigorian 2 жыл бұрын
If I'm using create-react-app, why should I use Vite when there's only one index.js file going into production anyway?? All these are for development mode correct?
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
It's definitely faster - but the choice is yours.
@anish_dalvi
@anish_dalvi 2 жыл бұрын
Yes Vite is really a TIME SAVER
@TravinskiyVladislav
@TravinskiyVladislav 2 жыл бұрын
thank you, Dave
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
You're welcome!
@dharmeshgohil9375
@dharmeshgohil9375 2 жыл бұрын
awesome dev🤩🤩
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thank you!
@3minutesbibletruth
@3minutesbibletruth 2 жыл бұрын
Thanks for your good work boss
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
You're welcome!
@prashlovessamosa
@prashlovessamosa 2 жыл бұрын
Thanks dave
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Welcome!
@ugurokur
@ugurokur Жыл бұрын
Hello Dave, can you tell me, what do you use Curly braces shower plugins
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
I'm not sure I understand your question, but I think you are asking how I get lines between my curly braces. If so, here is the answer: kzbin.infoMDaxWffMjrQ
@ugurokur
@ugurokur Жыл бұрын
@@DaveGrayTeachesCode yes it is, thank you very much. You are an excellent person :)
@ugurokur
@ugurokur Жыл бұрын
@@DaveGrayTeachesCode okey last questions. what do you use screen resizing on your lessons ? you drag right then screen fullsize or dragging left side, window is minimize , how do you do it ?
@luisbrazilva
@luisbrazilva Жыл бұрын
I get it. It's fast but why is everyone ignoring the huge security risk of exposing your API connections and key because it serves the JSX files in the network activity tab without masking them or encoding them.
@swastikpatro6436
@swastikpatro6436 2 жыл бұрын
How to add eslint to this vite react typescript setup?
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Couple of links to help: stackoverflow.com/questions/71020035/setup-vite-template-react-and-eslint-airbnb and www.npmjs.com/package/vite-plugin-eslint
@MigalYaroslav
@MigalYaroslav 2 жыл бұрын
I like Vite and using for most of my projects
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
This makes sense!
@krishnamurthyganeshb8543
@krishnamurthyganeshb8543 Жыл бұрын
you are awesome.
@安全保密
@安全保密 Жыл бұрын
I tried VITE now, and it is faster, but I wondering if should I learn or use these new tools when just a few companies choose them, as I know, many companies still use jquery anyway, and you don't know it you can't get the offer.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
I do not recommend learning jQuery in 2023 unless you inherit a project that uses it at work. If you do, you should incrementally remove the jQuery dependency. Should you learn how to use Vite? Yes. It is always good to keep learning. The industry doesn't stop introducing new things.
@安全保密
@安全保密 Жыл бұрын
@@DaveGrayTeachesCode Thanks for your advice!
@imkir4n
@imkir4n 2 жыл бұрын
Does vite makes difference in the production?
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
No, it's a development tool. It definitely saves time in dev. 💯
@changNoi1337
@changNoi1337 2 жыл бұрын
I’m a little worried about using it for something serious. Like having trouble at the end building it and deploying. Do you think it is safe to use?
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Yes, many devs are already using Vite. It is safe to use.
@changNoi1337
@changNoi1337 2 жыл бұрын
@@DaveGrayTeachesCode Thanks Dave 😘
@akintobby
@akintobby 2 жыл бұрын
Vite is the new cool✊
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
🚀🚀🚀
@huzaifac137
@huzaifac137 2 жыл бұрын
But vite never installs on my PC because I have space in name of my windows user folder. Is their any solution to this?
@AmodeusR
@AmodeusR 2 жыл бұрын
Have you tried installing it with both npm and yarn? Because if not, unfortunately you would need to reinstall windows and this time around write your username without spaces or special characters.
@huzaifac137
@huzaifac137 2 жыл бұрын
@@AmodeusR Yeah I think reinstalling windows is the only option unfortunately
@ahmad-murery
@ahmad-murery 2 жыл бұрын
@@huzaifac137 Why not trying to create a new user (without spaces) and then login using the new account and reinstall it from there
@tareq8022
@tareq8022 Жыл бұрын
with next js ??
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
No, not "Nextjs". Just the true meaning of the word "next".
@davronmaxmudov3972
@davronmaxmudov3972 Жыл бұрын
How about next js?
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Right here: kzbin.info/aero/PL0Zuz27SZ-6Pk-QJIdGd1tGZEzy9RTgtj
@sayedulkrm
@sayedulkrm 2 жыл бұрын
Hello I have a question. If anyone knows please answer. How can I run my Vite project in localhost:3000 ? Basically it run in 127.0.0.1:3000.
@brendencallahan242
@brendencallahan242 2 жыл бұрын
They are the same thing. 127.0.0.1:3000 is localhost:3000.
@martapfahl940
@martapfahl940 Жыл бұрын
Yes my Next(JS) project needs Vite lol :D
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
😄
@abdulrahmanagboolaosho3582
@abdulrahmanagboolaosho3582 2 жыл бұрын
Thanks
@nabinsaud4688
@nabinsaud4688 2 жыл бұрын
I have already stopped using create react app
@sahriar.shourov
@sahriar.shourov 2 жыл бұрын
Where is the link??
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
vitejs.dev/
@sahriar.shourov
@sahriar.shourov 2 жыл бұрын
@@DaveGrayTeachesCode Discord Link?
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
@@sahriar.shourov for now, you can find it in the header of my channel banner or in the description of other recent videos. When I can I will add it to this one
@sahriar.shourov
@sahriar.shourov 2 жыл бұрын
@@DaveGrayTeachesCode Thanks For Your Reply!
@raheem81kg
@raheem81kg 2 жыл бұрын
appreciate it
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thank you!
@RahulKumar-fp1gy
@RahulKumar-fp1gy 2 жыл бұрын
Good evening/morning Dave, did you try "turbo" with NextJS?? It is a new bundler by the developers of webpack and relatively faster than "Vite".
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
I have not yet, but I have heard about it as it was recently introduced at their conference. I'll give it a little time.
@abman1662
@abman1662 2 жыл бұрын
They should mention the pronounciation on their site/git or soon it will be known as vyte.
@noir4356
@noir4356 2 жыл бұрын
No doubt it was fast. "Vite" means "fast" in French 😺
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Nice! 💯🚀
@LordFullStack
@LordFullStack 2 жыл бұрын
Vite is also for Server side rendering . Check this out kzbin.info/www/bejne/oIGkq4CGaKZriJY
@AuxiliaryOfficial
@AuxiliaryOfficial 2 жыл бұрын
Agree
@rahmatyousefi8273
@rahmatyousefi8273 2 жыл бұрын
Ok I found thank you
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
You're welcome!
@somebody-17546
@somebody-17546 2 жыл бұрын
I use vite with ts, eslint, prettier
@AmodeusR
@AmodeusR 2 жыл бұрын
If I could ask you something, I would ask you to stop using create-react-app and use Vite instead for you videos. It's much faster, versatile and thus modern. It's a dream yet to become true, since I use it for the reasons said and sometimes it causes some confusion working on a vite project watching a create-react-app video class 😅
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
As mentioned here, I'll be using Vite going forward. 🚀
@hawks2271
@hawks2271 2 жыл бұрын
Nice🇧🇷
@АндрейСердюк-э8ч
@АндрейСердюк-э8ч Жыл бұрын
if you like so much Vite, why waist time with garbage React, why not choose VUE?!!
@mrngasa3415
@mrngasa3415 2 жыл бұрын
Thanks a lot Dave 🤍
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
You're welcome!
@abuhossain4274
@abuhossain4274 2 жыл бұрын
sir what is your discord username ? pls give me
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
My Discord server is linked in the description. I'm Dave Gray in the server and in real life 😀
React Typescript Tutorial for Beginners
28:24
Dave Gray
Рет қаралды 85 М.
You don't need a frontend framework
15:45
Andrew Schmelyun
Рет қаралды 141 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Vite Crash Course | Faster Alternative To CRA
16:24
Traversy Media
Рет қаралды 226 М.
Next.js vs. Vite - Worth migrating to Vite?
9:17
snackableCTO
Рет қаралды 9 М.
How To Debug React Apps Like A Senior Developer
21:07
Web Dev Simplified
Рет қаралды 200 М.
15 Years of Web Dev in 12 Minutes
12:35
Awesome
Рет қаралды 47 М.
Speed Up Your React Apps With Code Splitting
16:50
Web Dev Simplified
Рет қаралды 402 М.
Learn Vite with Evan You
13:35
Vue Mastery
Рет қаралды 272 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН