Home >Web Front-end >JS Tutorial >What should I do if an error occurs when writing react in webstorm?

What should I do if an error occurs when writing react in webstorm?

coldplay.xixi
coldplay.xixiOriginal
2020-12-01 14:55:362168browse

The solution to the error when writing react in webstorm: first set the javaScript language version to React jsx; then set ESLint Disable ESLint.

What should I do if an error occurs when writing react in webstorm?

The operating environment of this tutorial: windows7 system, React17 version. This method is suitable for all brands of computers.

Solution to webstorm error when writing react:

1. Set javaScript language version and select Field for React jsx

-> Settings -> Languages ​​& frameworks ->javaScript ->javaScript language version

What should I do if an error occurs when writing react in webstorm?

2. Set ESLint Disable ESLint

What should I do if an error occurs when writing react in webstorm?

What should I do if an error occurs when writing react in webstorm?

##Related learning recommendations:

javascript video tutorial

The above is the detailed content of What should I do if an error occurs when writing react in webstorm?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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