Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Initializing app in browser
Hello all, I took a hiatus from this course and have been doing other things with create-react-app. Now I can't figure out how to get this app to host locally (my go to npm install and npm start don't work). Any help would be greatly appreciated. Thank you!
It looks like in that section they haven't started using node but instead using a simple http server and CDNs.
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script> <script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script> <script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script> <script type="text/babel" src="./app.js"></script>
Here is the link they provide for the HTTP Server
You could try creating the react app and load the source files, or just follow along using a simple webserver. I think I was using my XAMPP server for that section.