[React] Set up React apps with zero Configuration

Source: Internet
Author: User
Tags npm scripts

The React team has a official Command line Interface (CLI) for building React projects called "Create React App"; In this lesson, we show how to use this tool to quickly set up new projects using the create-react-app {project-name} command. We then use the NPM scripts that is provided: to npm start develop, to ship npm run build , and to opt out of the npm run eject abstracted too Ling.

The benefits of this tool is:
-It ' s officially maintained by the React team; This means best practices out of the box
-Zero config, one dependency
-Config is abstracted so React team can make improvements under the hood and you get the new goodness for free
-Clean command line output for errors
-Can "eject" at any time if needed

Install:

Install -G Create-react-app

Create a new app:

Create-react-app React-start

Remove react-scripts:

Eject

This would remove the react-script and back to normal.

[React] Set up React apps with zero Configuration

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.