This week's giveaway is in the Beginning Java forum.
We're giving away four copies of Bad Programming Practices 101 (e-book) and have Karl Beecher on-line!
See this thread for details.
Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Babel/JSX being funny in text editor?  RSS feed

 
Ranch Hand
Posts: 318
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: 66727
167
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: 318
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.
 
We don't have time for this. We've gotta save the moon! Or check this out:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!