You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Converting method into a property declaration with arrow function. However, when I do this, the IDE complains that this is only supported with TypeScript .ts files.
However, if I change the extension to .ts it complains about my JSX and type declarations for React imports such as Text and StyleSheet etc.
Wasn't aware of .tsx but I tried it and didn't work either. Looks like a fix (or docs) is in the works from what I can gather from the other issues related to this...
Thanks!
From @kristianmandrup on March 2, 2016 11:59
Trying to create a React component as a class. Currently my file is called
GiftedMessengerExample.js
and detected asJavascript (Salsa)
Following guidelines here: https://babeljs.io/blog/2015/06/07/react-on-es6-plus
Converting method into a property declaration with arrow function. However, when I do this, the IDE complains that this is only supported with TypeScript
.ts
files.However, if I change the extension to
.ts
it complains about my JSX and type declarations for React imports such asText
andStyleSheet
etc.Please fix this :)
Copied from original issue: microsoft/vscode#3628
The text was updated successfully, but these errors were encountered: