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 trialQamar Ramzan
10,377 PointsJSX not formating correctly in Sublime Text
Hi I am using Sublime Text to code. For some reason when i type in JSX code the formatting i.e. the colour coding is all wrong. If i name the file with an extension .JSX it works fine.
How do i fix it so my jsx code displays correctly while keeping the extension as .js
Thanks in advance
Jeremy Hill
8,863 PointsJeremy Hill
8,863 PointsIām not sure about sublime but VS Code is the best for react in my opinion. There are a lot of extensions in it that help with formatting and linting. code.visualstudio.com