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-murery2 жыл бұрын
This is no excuse not to post a new video on Tuesday 😁 Vite is really fast and interesting, Thanks Dave,
@musamutetwi19482 жыл бұрын
No, actually Vite is so fast it actually build the video before actual date
@DaveGrayTeachesCode2 жыл бұрын
@@musamutetwi1948 LOL that's funny!
@DaveGrayTeachesCode2 жыл бұрын
@@ahmad-murery haha my friend! Maybe so!
@abhishekmazumder20602 жыл бұрын
Simple and crisp tutorial. Which font are you using btw? Thanks!
@ScriptRaccoon2 жыл бұрын
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.
@DaveGrayTeachesCode2 жыл бұрын
Right on!
@mavdotj2 жыл бұрын
I use sveltekit and it is kinda fustrating when my stores reset after HMR
@Sifsif__ma Жыл бұрын
create react app does the same , no ?
@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
@rycka72607 ай бұрын
@@Sifsif__ma secret behind Vite is that it utilizes websockets, that's why it is so super fast.
@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 Жыл бұрын
Glad I could help!
@TVTtheis Жыл бұрын
Thanks you for the overview ❤
@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.
@konidoniravirr65802 жыл бұрын
You have a really good voice that i blindly subscribed. Thank you for this big video.😄
@DaveGrayTeachesCode2 жыл бұрын
Welcome!
@resulabdulla3825 Жыл бұрын
thanks you bro, This is awesome toolkit
@ashharkausar4132 жыл бұрын
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.
@DaveGrayTeachesCode2 жыл бұрын
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
@ashharkausar4132 жыл бұрын
@@DaveGrayTeachesCode Sometimes small things are not so small.
@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 Жыл бұрын
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 Жыл бұрын
Right on!
@johnychinese2 жыл бұрын
Vite is now Dave Certified 🛡
@DaveGrayTeachesCode2 жыл бұрын
🏆💯
@CatsAndCode10 ай бұрын
Thats an awesome vide. but can i ask why use windows?
@gilbertardila2 жыл бұрын
Forget about Webpack, no more complications vite is wonderful!!!
@DaveGrayTeachesCode2 жыл бұрын
Agreed!
@Sifsif__ma Жыл бұрын
is Webpack difficult to manage ?
@codernerd70762 жыл бұрын
💯 Vite is amazing just like this video!
@DaveGrayTeachesCode2 жыл бұрын
Thank you!
@Pareshbpatel Жыл бұрын
This is an excellent introduction to Vite. Thanks, Dave {2023-03-15}, {2023-05-03}, {2023-06-23}
@DaveGrayTeachesCode Жыл бұрын
You're welcome!
@siosaiafonua9286 Жыл бұрын
The question is, do i choose between VITE or Nextjs? I want to build a full stack big app
@marcinzale2 жыл бұрын
Great content, as always! Thanks!
@DaveGrayTeachesCode2 жыл бұрын
You're welcome! 🙏
@SZaferUlgur2 жыл бұрын
Great job.. The installation process was really tiring. Thank you so much.
@klp25135 ай бұрын
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 Жыл бұрын
I missunderstood this... how do you use Vite with NextJS?
@AdharshScipy Жыл бұрын
how to take build by rectifying errors and warnings in vite also ts
@sherifashraf80082 жыл бұрын
Keep it up. You are doing a great job.❤
@DaveGrayTeachesCode2 жыл бұрын
Thank you!
@konnichiwa012 жыл бұрын
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).
@DaveGrayTeachesCode2 жыл бұрын
Glad I could help!
@abdulazeez.982 жыл бұрын
I have been hearing about Vite lately, this video made my mind to change to it!
@DaveGrayTeachesCode2 жыл бұрын
Right on!
@okonkwo.ify182 жыл бұрын
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_ Жыл бұрын
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 Жыл бұрын
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.
@hamdiboujarra2 жыл бұрын
thank you so much. please steve when dart and flutter?
@fafbk7773 Жыл бұрын
Is it from vite labs ??
@anandraj1623 Жыл бұрын
How to upload the vite js project onto the docker
@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 Жыл бұрын
Great request!
@frankli70352 жыл бұрын
amazing,long time required TS with vite
@bkatsevych2 жыл бұрын
Thanks a lot for another great video! Keep up the good work!
@DaveGrayTeachesCode2 жыл бұрын
You're welcome!
@danielrauhut239 Жыл бұрын
Please rename this video, I was searching whether its possible to run a NextJS app on vite and you got my hopes up
@willyhorizont86722 жыл бұрын
This makes me want to migrate my CRA js app to VITE and Typescript 🚀
@DaveGrayTeachesCode2 жыл бұрын
Great project!
@faris.abuali2 жыл бұрын
Thank you! Great tutorial
@DaveGrayTeachesCode2 жыл бұрын
Thank you for the kind words!
@OnePiece_Fandom2 жыл бұрын
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 ?? ❤️❤️
@DaveGrayTeachesCode2 жыл бұрын
This video should provide everything you need to use Vite - and yes, it is safe for production.
@sonamohialdin33762 жыл бұрын
It is looking very useful frontend tool thank you
@DaveGrayTeachesCode2 жыл бұрын
Welcome!
@ewaevva43752 жыл бұрын
Dave, what about NestJS ? I'm currently learning it and would like to know your opinion about it, please 🙂
@DaveGrayTeachesCode2 жыл бұрын
I've heard good things! I'd like to cover it in the coming months.
@coderboysobuj2 жыл бұрын
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
@DaveGrayTeachesCode2 жыл бұрын
It sounds like this is just a react router hosting issue where you need to set the redirect/rewrite rule on the host.
@MeloGrigorian2 жыл бұрын
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?
@DaveGrayTeachesCode2 жыл бұрын
It's definitely faster - but the choice is yours.
@anish_dalvi2 жыл бұрын
Yes Vite is really a TIME SAVER
@TravinskiyVladislav2 жыл бұрын
thank you, Dave
@DaveGrayTeachesCode2 жыл бұрын
You're welcome!
@dharmeshgohil93752 жыл бұрын
awesome dev🤩🤩
@DaveGrayTeachesCode2 жыл бұрын
Thank you!
@3minutesbibletruth2 жыл бұрын
Thanks for your good work boss
@DaveGrayTeachesCode2 жыл бұрын
You're welcome!
@prashlovessamosa2 жыл бұрын
Thanks dave
@DaveGrayTeachesCode2 жыл бұрын
Welcome!
@ugurokur Жыл бұрын
Hello Dave, can you tell me, what do you use Curly braces shower plugins
@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 Жыл бұрын
@@DaveGrayTeachesCode yes it is, thank you very much. You are an excellent person :)
@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 Жыл бұрын
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.
@swastikpatro64362 жыл бұрын
How to add eslint to this vite react typescript setup?
@DaveGrayTeachesCode2 жыл бұрын
Couple of links to help: stackoverflow.com/questions/71020035/setup-vite-template-react-and-eslint-airbnb and www.npmjs.com/package/vite-plugin-eslint
@MigalYaroslav2 жыл бұрын
I like Vite and using for most of my projects
@DaveGrayTeachesCode2 жыл бұрын
This makes sense!
@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 Жыл бұрын
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!
@imkir4n2 жыл бұрын
Does vite makes difference in the production?
@DaveGrayTeachesCode2 жыл бұрын
No, it's a development tool. It definitely saves time in dev. 💯
@changNoi13372 жыл бұрын
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?
@DaveGrayTeachesCode2 жыл бұрын
Yes, many devs are already using Vite. It is safe to use.
@changNoi13372 жыл бұрын
@@DaveGrayTeachesCode Thanks Dave 😘
@akintobby2 жыл бұрын
Vite is the new cool✊
@DaveGrayTeachesCode2 жыл бұрын
🚀🚀🚀
@huzaifac1372 жыл бұрын
But vite never installs on my PC because I have space in name of my windows user folder. Is their any solution to this?
@AmodeusR2 жыл бұрын
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.
@huzaifac1372 жыл бұрын
@@AmodeusR Yeah I think reinstalling windows is the only option unfortunately
@ahmad-murery2 жыл бұрын
@@huzaifac137 Why not trying to create a new user (without spaces) and then login using the new account and reinstall it from there
@tareq8022 Жыл бұрын
with next js ??
@DaveGrayTeachesCode Жыл бұрын
No, not "Nextjs". Just the true meaning of the word "next".
@davronmaxmudov3972 Жыл бұрын
How about next js?
@DaveGrayTeachesCode Жыл бұрын
Right here: kzbin.info/aero/PL0Zuz27SZ-6Pk-QJIdGd1tGZEzy9RTgtj
@sayedulkrm2 жыл бұрын
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.
@brendencallahan2422 жыл бұрын
They are the same thing. 127.0.0.1:3000 is localhost:3000.
@martapfahl940 Жыл бұрын
Yes my Next(JS) project needs Vite lol :D
@DaveGrayTeachesCode Жыл бұрын
😄
@abdulrahmanagboolaosho35822 жыл бұрын
Thanks
@nabinsaud46882 жыл бұрын
I have already stopped using create react app
@sahriar.shourov2 жыл бұрын
Where is the link??
@DaveGrayTeachesCode2 жыл бұрын
vitejs.dev/
@sahriar.shourov2 жыл бұрын
@@DaveGrayTeachesCode Discord Link?
@DaveGrayTeachesCode2 жыл бұрын
@@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.shourov2 жыл бұрын
@@DaveGrayTeachesCode Thanks For Your Reply!
@raheem81kg2 жыл бұрын
appreciate it
@DaveGrayTeachesCode2 жыл бұрын
Thank you!
@RahulKumar-fp1gy2 жыл бұрын
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".
@DaveGrayTeachesCode2 жыл бұрын
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.
@abman16622 жыл бұрын
They should mention the pronounciation on their site/git or soon it will be known as vyte.
@noir43562 жыл бұрын
No doubt it was fast. "Vite" means "fast" in French 😺
@DaveGrayTeachesCode2 жыл бұрын
Nice! 💯🚀
@LordFullStack2 жыл бұрын
Vite is also for Server side rendering . Check this out kzbin.info/www/bejne/oIGkq4CGaKZriJY
@AuxiliaryOfficial2 жыл бұрын
Agree
@rahmatyousefi82732 жыл бұрын
Ok I found thank you
@DaveGrayTeachesCode2 жыл бұрын
You're welcome!
@somebody-175462 жыл бұрын
I use vite with ts, eslint, prettier
@AmodeusR2 жыл бұрын
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 😅
@DaveGrayTeachesCode2 жыл бұрын
As mentioned here, I'll be using Vite going forward. 🚀
@hawks22712 жыл бұрын
Nice🇧🇷
@АндрейСердюк-э8ч Жыл бұрын
if you like so much Vite, why waist time with garbage React, why not choose VUE?!!
@mrngasa34152 жыл бұрын
Thanks a lot Dave 🤍
@DaveGrayTeachesCode2 жыл бұрын
You're welcome!
@abuhossain42742 жыл бұрын
sir what is your discord username ? pls give me
@DaveGrayTeachesCode2 жыл бұрын
My Discord server is linked in the description. I'm Dave Gray in the server and in real life 😀