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 trial

JavaScript

In case anyone gets a 404 on Github after deploying

Make sure you've do the following:

1) Set up a github repo on github.com

2) In your project directory, add the master remote to push to that repo.

3) add the basename to go to your github repo's name. If you named it 'course-directory' it'd look like this. <BrowserRouter basename="/course-directory">

4) In app.js, change BrowserRouter(in import and all of app.js) to HashRouter.

I was trying to follow along the video and run into the same errors that Guil showed, but my deployed page only showed gh-pages's 404 error page. Then, I implemented step 4 and everything finally worked.