@jetbrains does Webstorm automatically pull type definitions for react or do you have to manually install? #react #webstorm
-
-
Replying to @wonbyte @jetbrains
You can hit Alt-Enter on the react import statement and select "Download type definitions". Type definitions will improve code completion with type info in JS project, but in general, everything should work pretty good if you just have react in node_modules.
1 reply 0 retweets 0 likes -
Replying to @WebStormIDE @jetbrains
On Mac, seems like the type defs are there however things like Component from React are not being recognized. I have react.js in my node_modules too. Any idea why it can’t recognize types like Component?
1 reply 0 retweets 0 likes
Replying to @wonbyte @jetbrains
Is react listed in package.json? What WebStorm and React version do you use?
7:35 AM - 31 Jan 2018
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.