Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

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?
 
Marshal
Posts: 67192
169
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.
 
The overall mission is to change the world. When you've done that, then you can read this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!