I have always relied on the npm command create-react-app to create the starter files for any React.js project. It does what it says on the tin, and...
For further actions, you may consider blocking this person and/or reporting abuse
Vite is cool, I love how things are fast on dev server.
I also made boilerplate for daily projects with Tailwind, if you want to check it out, see it on my GitHub here
Thats awesome, you should contribute to the community here github.com/vitejs/awesome-vite#tem... . They have one for react and tailwind already, maybe you can add yours as well.
thank you bro, I have added mine too, and it was merged already!
I've recently switched a Vue CLI project to Vite. It's impressive how fast things are - but makes complete sense when there's no build step needed when developing.
One thing I've found less intuitive are images, especially dynamically referenced ones (e.g. in a loop). I've had to create a utility for this:
Is this also the case in React?
Yes , Similar in react
I moved to vitejs for lit-element (now only lit) and is amazing! 💯💯🚀 Web pack is very slow to spinup a dev server
Firts tme I am hearing of lit-elemnt, Intresting, what apps are you building with it?
It is one of the main "frameworks" of modern development, vitejs.dev/guide/#scaffolding-your... Vite support the main popular frameworks vue, react, lit-element and svelte
I choose Lit-element because is the closest thing to
js vanilla
with all the power of web components (the performance is amazing ⚡️). Eventually I consider that web components are going to be so robust that you won't need a framework. Lit-element is the framework for web components par excellence. Stencil I don't like like LitI build all empleo.gt with
Lit
Which next will be migrated to hirex.app for worldwide versionThanks, Nice to know that about Lit, will look at it. Also good luck with your app too
Why don't you use package.json inside each directory and refers to files like "@components/MyCompoment"?!
You don't need do setup anything else. Just a package.json in each folder with content:
{ "name": "components" }
This is so dirty I can't believe people do this.
Stiil too much bugs
On vite? I'm just researching if I should switch to vite.
I have switched from CRA to Vite just because CRA is so slow! Vite is blazing fast even on my aging machine.
Thats good to hear. CRA has always been so slow. But I had to put up with it. Other option was configuring webpack, which was way worse in terms of time to setup.
Vite is really cool,
I hope they support Angular in the near future.
Angular is a waste of time! A poor framework, too much verbose.
This is a great overview!
If you want a deep dive understanding of Vite, I wrote about here - jerrychang.ca/writing/vite-how-it-...
I have the problem
I have the problem with vite + react.
When I run the localhost, see in the terminal [vite] hmr update.
And after that in the browser nothing display on the screen.
Screen is blank.