Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialamourief
5,469 PointsReact "intellisense" / code suggestions doesn't show up for me in my own local environment - how do I enable this?
For example when I type the following: 'React.propTypes.' string is not suggested to me. Referring to where the code suggestions are showing for the course presenter when he types the code below.
Application.propTypes = { title: React.PropTypes. }
2 Answers
Chris Shaffer
12,030 PointsI think what you are looking for is code completion - suggestions for common syntax, functions and keywords that appear in your code editor as you type.
If you're using Sublime Text there are a number of plugins for this but for React they are a bit dated. You can add them using Package Control.
I would suggest looking at Atom if you're going to continue with React. It has a lot of nice native support for React and JS in general and the Babel plugin will do nice highlighting of JSX syntax. There are a number of other plugins that will help with code completion for both JS and React. Atom was created by GitHub.
amourief
5,469 PointsThank you Chris. I recently made the switch to Atom from Sublime and prefer using it over Sublime. I've found an Atom plugin that does code completion for React. Will have a look at the Babel plugin too.
Thanks again for your help :)
Chris Shaffer
12,030 PointsNo problem! If my answer helped please up vote and mark it as the best answer!