[Web Front end] Webstorm Quick build react Project

Source: Internet
Author: User

CP from:79467144

Front-end Novice How to install Webstorm, preliminary build react Project

Download Install Webstorm: Configuration succeeded:

Once the configuration is successful, you can open the Webstorm project. (Save collection,,)

1: Configure the node environment under Webstorm:

2: After completion:

REACT Official Scaffolding Address:

Https://github.com/facebook/create-react-app

Installing the NPM install-g Create-react-app under the terminal does not have to be installed on each item. One webstorm can be installed once

3: You can create a new React app project directly.

4: After your installation is complete: Perform the next npm list-depath0 (view downloaded dependent packages that are not empty)

or NPM LS (see all of the downloaded dependencies including empty pieces)

complete and open the portal

5: Finally you can complete your own react project

Note: Be sure to have the top-level package element: if it's not an error

Such as:

6: Initialize:

Create a new Component folder. and build a header.js such as: Button control content of the explicit recessive

The class Header behind the abbreviated class must be capitalized and exported to a different location if you need to export the default class

7: Referencing the exported component

7:

8: Final Result

9: Package is on line after the project is completed. The file that runs yarn build uploads is roughly as shown: Concrete analysis of specific circumstances

[Web Front end] Webstorm Quick build react Project

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.