Start with React.js

November 23, 2020

Let’s start with how to setup a react application~ setup a react application~.

react.js

There are several ways to get started with react.

create-react-app

Create React App is a comfortable environment for learning React, and is the best way to start building a new single-page application in React.

It sets up your development environment so that you can use the latest JavaScript features, provides a nice developer experience, and optimizes your app for production. You’ll need to have Node >= 10.16 and npm >= 5.6 on your machine. To create a project, run:

npx create-react-app my-app
cd my-app
npm start

Online code playground

You can play aroud with react on these online code playgrounds: CodeSandbox, CodePen and Stackblitz


Profile picture

Written by Wei Zhang (Noah) who lives and works in Melbourne as a front-end developer.

© 2021 Noah's web dev notes