• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Babel/JSX being funny in text editor?  RSS feed

 
Ranch Hand
Posts: 335
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, I am on my way to learning react...well attempting at least. When writing code to just show a picture and a few li's my editor does not like it, and I get errors like "React.Component is not a function", or some error message that has to do with "inline babel". However when I copy and paste the code in instead of typing it, then it works fine. I am using sublime Text 3 to work in, and its just frustrating not being able to focus on react, and trying to figure out why typing it in does not work. its the same exact code whether typing or copy and paste....it just seems to like it more when I copy and paste. Any ideas why this is happening? Is there something better to use for react instead of sublime?
 
Author and ninkuma
Marshal
Posts: 66806
168
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use WebStorm (IntelliJ's front-end focused brother) and have it set up for React and ES6.

Maybe it's just a matter of config for SublimeText?
 
Cody Biggs
Ranch Hand
Posts: 335
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tried a few things I searched, but it still continues to be a little weird. I decided to switch over to cloud9 since it has everything I already need to run. At least while I’m learning react, and then try to switch back over.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!