Reputation: 111
React is included in my project, but WebStorm is not recognizing the variable name React
when I'm using it in code (gets a squiggly underline). The code still runs and executes just fine. What do I need to do?
Upvotes: 0
Views: 315
Reputation: 89
Add the react-DefinitelyTyped library to you JavaScript Libraries in WebStorm's preferences. Use the Download... button to search for it and then download it.
Upvotes: 1
Reputation: 755
Just put your cursor over where you are getting the src and hit alt-enter. Webstorm will download it for you.
Upvotes: 0