The solution to the error when writing react in webstorm: first set the javaScript language version to React jsx; then set ESLint Disable ESLint.
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
2. Set ESLint Disable ESLint
##Related learning recommendations:
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!