Set the. js file to open by default in JSX syntax
In the absence of settings, each time you open Webstorm, the. js file containing the JSX syntax will have the following prompt:
Of course, we click on the conversion can be, but every time will prompt, so or a once and for all the way to remove it:
Then Apply/ok can.
Support for react-native syntax highlighting in. js File Settings
First, there are a number of warnings in the JS file, similar to this:
The reason for this warning is that the editor does not know where the referenced items are (not knowing where the source is), so you need to tell the editor what source it is written in:
In the download manager found react and react-native to download the installation, and then return to the window, according to part five to check the two library just downloaded.
This concludes with the following results:
Both the warning and the error were resolved. Can write the code at peace of mind, haha!
About the React Native export declarations is not supported by the current JavaScript version error resolution problem