Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React is poorly supported (especially .js file) #1378

Closed
rui-ktei opened this issue Dec 16, 2015 · 5 comments
Closed

React is poorly supported (especially .js file) #1378

rui-ktei opened this issue Dec 16, 2015 · 5 comments
Assignees
Labels
javascript JavaScript support issues
Milestone

Comments

@rui-ktei
Copy link

Created a test.js and wrote very simple React code. This is what I got:
capture

To be honest, currently VS Code has very bad support of React syntax and it's basically useless. This issue has been there for quite some time... just wondering: is it going to be fixed?

@dbaeumer dbaeumer added bug Issue identified by VS Code Team member as probable bug javascript JavaScript support issues and removed bug Issue identified by VS Code Team member as probable bug labels Dec 16, 2015
@dbaeumer dbaeumer added this to the Backlog milestone Dec 16, 2015
@dbaeumer
Copy link
Member

@jrieken

@louy
Copy link

louy commented Dec 16, 2015

You're probably missing Props & State interface types.

interface Props { /*...*/ }
interface State { /*...*/ }
class MyComponent extends React.Component<Props, State> {
  // ...
}

See its declarations file.

@jrieken
Copy link
Member

jrieken commented Dec 16, 2015

duplicate of #140

@jrieken jrieken closed this as completed Dec 16, 2015
@rui-ktei
Copy link
Author

@louy I wasn't using typescript. I just wrote some ES6 + React.

@louy
Copy link

louy commented Dec 17, 2015

@rui-infotrack oh sorry. Ignore what I said then. Someone else was having the same problem with tsx and I must've overlooked your issue.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
javascript JavaScript support issues
Projects
None yet
Development

No branches or pull requests

4 participants