Webstorm can build react projects. The construction method is: first install webstorm and configure it; then configure the node environment under webstorm; then install and execute "npm install -g create-react-app" under the terminal; finally Just create a new react.
The operating environment of this tutorial: windows7 system, webstorm2020.3&&react16.4.0 version, Dell G3 computer.
Recommended: "webstorm tutorial"
Create React project with webstorm
Download and install webstorm, and then configure it, the configuration is successful:
After successful configuration, you can start the webstorm project.
1: Configure the node environment under webstorm:
2: After completion:
React official scaffolding address:
https://github.com/facebook/create-react-app
Install and execute npm install -g create-react-app in the terminal. You don’t need to install it for every project. Just install a webstorm once
#3: You can create a new react app project directly.
4: As shown above: After the installation is completed: execute npm list -depath0 (check the downloaded dependencies that are not empty Package)
or npm ls (check all downloaded dependent packages including empty files)
Complete and open the entrance
5: Finally, you can complete your own react project by yourself
Note: there must be top-level package elements: if not, an error is reported
As shown below:
6: Initialization:
Create a new component folder. And create a header.js as shown below: The button controls the visibility of the content
The class Header after the abbreviated class must be capitalized. If you need to export it to other places for reference, you must export the default class
7: Reference to the exported component
8: Final result
9: Package and go online after the project is completed. The file uploaded by running yarn build is as shown below
The above is the detailed content of Can webstorm build react projects?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Dreamweaver CS6
Visual web development tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.
