Why npx-create-app

My React journey certainly started in March this year. I wanted to learn React since everyone talks about it. To me, React was a magic technology that would certainly make me a much more credible beginner developer ( if there is such term).

I am glad about my decision to learn Javascript the first 3 months of my programming journey since React utilizes Javascript heavily. It would not be possible for me to understand how React operates without an understanding of Javascript behind the scene and ES6 concepts.

The first step of installing React was with npx create-react-app. I had no idea what this means and how it works but I just did it anyway.

By running in command npx create-react-app, a vast amount of dependencies, libraries and plugin have been installed for you all in one package. And in my humble opinion, this is sufficient for a lot of projects out there.

We don’t need to worry about how the browsers will:

  • Render images such as jpeg / jpg / png / etc…
  • What React will do when we write CSS / SCSS files
  • What happens with rendering fonts
  • And A LOT MORE.

There are a lot of responsibilities React takes over for us, as a beginner we will not have to worry about configuring, installing libraries and dependencies.

Of course, different projects will need/require other plugins and dependencies as the project scopes increase. But for me, as a beginner. I appreciate how it does everything under the hood so I can focus on learning the core concept.

In saying that. It is definitely on my todo list to learn how to manually configure a React project from scratch so I can get a deeper understanding of how it works behind the scene.

Leave a comment