@jetbrains does Webstorm automatically pull type definitions for react or do you have to manually install? #react #webstorm
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.
-
-
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?
-
Is react listed in package.json? What WebStorm and React version do you use?
End of conversation
New conversation -
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.