啟動

create-react-app

# create new app
npx create-react-app my-app      # new app (`my-app` subfolder created)
cd my-app                        # change to app directory

# starts the development server
# (default browser launch automatically at http://localhost:3000/)
npm start

# app code resides in `src` folder
# (App.js, index.js, ...)

Last updated

Was this helpful?