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
{{ message }}
Repository navigation
JSX and Salsa: Intellisense for ReactComponents does not work #2886
varCommentBox=React.createClass({render: function(){return(<divclassName="commentBox">
Hello, world! I am a CommentBox.
</div>);}});ReactDOM.render(<CommentBox/>,document.getElementById('content'));
I see in your screenshot that you are using ES7 bind operator which is not yet supported by TypeScript which powers Salsa. As a consequence you get syntax errors and red squiggles which can make Intellisense fail.
In the second screenshot you are correct that the React-Component could be proposed first, but the React-Component is proposed so Intellisense is working but the sorting isn't optimal.
Activity
egamma commentedon Feb 10, 2016
Did you install the corresponding .d.ts files?
egamma commentedon Feb 10, 2016
Does it work in this simple hello world example:
nwehrle commentedon Feb 10, 2016
You are right, I forgot to install the .d.ts file for the screenshot (but I tried before).

It does not offer the React-Component as the best option in your minimal example:

egamma commentedon Feb 10, 2016
I see in your screenshot that you are using ES7 bind operator which is not yet supported by TypeScript which powers Salsa. As a consequence you get syntax errors and red squiggles which can make Intellisense fail.
In the second screenshot you are correct that the React-Component could be proposed first, but the React-Component is proposed so Intellisense is working but the sorting isn't optimal.
Moving over to TypeScript as an FYI.
egamma commentedon Feb 10, 2016
This issue was moved to microsoft/TypeScript#7000