🏁Build tool choice for MVP projects
Last updated
Last updated
Creating React app really doesn't need any fancy builder as you can do it by your self we just simple CDN, thus that approach can work for small exercises or just playing with code , in real world we use building tools that facilitate the task of configuring the project bundling the app and managing 3'rd tiers libraries.
The most common choice is :
It was a very good build tool : it has a lot of integrations that is mature and solid for common business logic . but in modern days i remarked a swift shift to:
Like create-react-app it's a build tool created by Evan You the creator of Vue.js.
It's by far faster than create react up as it uses Rollup under the hood against the MegaZord webpack used by Create-react-app .
For all my personal small projects i use Vite as it's blazing fast. but for more complex projects i will choose a framework like next.js or gatsby . For now let's stick with vite and JavaScript. and i will talk about my favorite stack in the **** react ecosystem section
You can read more about Vite comparison :
Vite has various template to chose from as it's not specific to React.
As in the fundamentals section we will use only JavaScript we will build our app by just running this command.
With NPM:
With Yarn:
You can also directly specify the project name and the template you want to use via additional command line options. For example, to scaffold a Vite + React project, run:
Then just go to your newly created project and install the dependencies and then run the project.
I did choose react-grimoire as the name of the project but you can name what ever you please
And here you go a react project ready to use . simple right ??