Creating Your First React App

Aszalea R Calderon
2 min readDec 9, 2020

You feel good about HTML, CSS, and JavaScript. You have been looking around trying to see what you want to learn next to up your skills. You find React and heard it was created by Facebook to help with their code maintenance. All of this is great but how do we actually get started?

Photo by Ella Jardim on Unsplash

First, we will need a few things: a text editor (VScode is my go-to), Node ≥ 8.10, and npm ≥ 5.6. Once these are in place run the following in your terminal.

Create react app
Create-react-app

This will create your first React app! From here you can start your app by writing npm start in your terminal. This will open your first application.

npm start
npm start

Create-React-App comes pre-bundled with a few things: the latest version of React, React-DOM, as well as the latest version of react-scripts, a dev dependency that manages all other dependencies that start, test, and build. All of these things come all wrapped up in a pretty package called “create-react-app”.

If you are wanting to cut back on the number of files you have in your program, you can absolutely download each package you want separately. One thing to know about create-react-app is that by itself it doesn’t handle backend logic or databases. Behind the scenes, React a way to connect any backend you want.

When you are fully completed with your app, you will want to run NPM run build. This creates a compiled, optimized build folder in your app.

If you want to learn more, check out:

--

--

Aszalea R Calderon

I work as a UX Designer. I adore games (video and board), learning, travel, and personal wellness.