Creating Your First React App

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
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:

I am a Software Engineer who loves video games, learning, and board games

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store