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 trialDerrick Kearney
2,962 PointsSetting up the environment, why are there not instructions on how to set this up?
Setting up react should explained.
2 Answers
Jacob Mishkin
23,118 PointsIt depends on your build system. If you are trying to export your .min.js file to your dist folder I would suggest using gulp. you can find more on babel's website
Derrick Kearney
2,962 PointsHey Jacob, I appreciate your insight. if this was a free site, I would understand, but it is not. I have no issues with using google to search. An intro course should give a good overview of setting up, and the question on babel-browser.min.js. And his response "This is way I was getting errors trying the same code of workspace in my local machine. Maybe a good starting point for this course could be how to config React without babel-browser included directly in the project, considering that is not supported anymore."
Jacob Mishkin
23,118 PointsI'm sure by who you are referring to to with "his response", but React is advanced level JS. Personally I'm not comfortable using it. I do know that JSX can not be compiled by the DOM and that you need to use Babel or any other Js compiler to process the code. I understand that you think there should be a how do we set up React prerec. to the React basics. You will always need to use Google to find out questions, its a very important skill to have. If you want to know more about the babel-browser.min.js, please see below.
Derrick Kearney
2,962 PointsI should have been more clear, "his" post/comment can be found under the other questions for this course. If you think I have never used google before you would be mistaken. I use it every single day, numerous times. I have installed all kinds of things and set up all kinds of environments mostly in Python, others too. Again, this is not stackoverflow, it is a paid subscription. This is a basic course. Next the code given causes an error using the jsx tool from google, "XMLHttpRequest cannot load ...... No 'Access-Control-Allow-Origin'", the culprit being babel-browser.min.js
I understand that posts in the forum in most cases, can be easily resolved but in this case just telling me it is complicated, I would not use it, go google it.... problematic. If you do not use it why are you commenting on this? You are trying to treat this like a coding forum like stackoverflow. Try giving the answer you did over there and see what would happen. It would not be well received as an acceptable answer. Google it and find out what happens when someone tries to answer a question, on a technology which they admittedly do not even use.
Treehouse obviously thought they should teach React Basics, because it is a course here. So the instructor is using browser.min.js and your suggestion is to do something the instructor is not doing.
Jacob Mishkin
23,118 PointsSorry my answer did not satisfy your needs. Good luck,
Derrick Kearney
2,962 PointsDerrick Kearney
2,962 PointsIs there no way to edit questions? I am referring to babel-browser.min.js