I've created a project using create-react-app
. I have switched my JavaScript language version to React JSX
in Preferences
| Languages & Frameworks
| JavaScript
.
But I still have unresolved variable warning and unresolved function warning.
React Native allows you to develop native mobile apps for iOS and Android using JavaScript and React.
Start typing a name. By default, WebStorm displays the code completion popup automatically as you type. If automatic completion is disabled, press Ctrl+Space or choose Code | Code Completion | Basic from the main menu. To get more suggestions, press Ctrl+Space for the second time (or press Ctrl+Alt+Space ).
I have tried the following according to this thread (Intellij IDEA CE 12 Android XML Code Completion not working): Go to File->Power Save Mode and disable it - it is off. Go to Preferences->Editor->Code Completion and check Autopopup code completion - this has been checked. Go to File->Invalidate Caches and restart.
The simplest way to achieve correct code completion while developing any (not only react) app is to add support for required type scrip libraries via IDE itself. Assuming you using JetBrains IDE for web dev (may be not WebStorm but IntelliJ IDEA):
commonly you don't need to restart IDE, changes will apply immediately. Happy coding!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With