Home > Web Front-end > JS Tutorial > body text

How to solve the error problem when writing react code in webstrom

藏色散人
Release: 2022-12-30 11:12:18
Original
2524 people have browsed it

The solution to webstrom's error when writing react code: first open the webstrom software; then open the corresponding react file; and finally set the JavaScript version to "JSX Harmony".

How to solve the error problem when writing react code in webstrom

The operating environment of this tutorial: windows7 system, webstorm2020.3&&react16.4.0 version, Dell G3 computer.

Related recommendations: "react tutorial"

Using reactjs syntax to report errors in WebStorm

How to solve the error problem when writing react code in webstrom

Set the JavaScript version to JSX Harmony. Generally, there will be a prompt for you to switch on the page where you write the react code. Just click the switch in the upper right corner;

If there is no prompt in the upper right corner, settings => ; Languages ​​& Frameworks => JavaScript => Just change the JavaScript language version

The above is the detailed content of How to solve the error problem when writing react code in webstrom. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!