|
3 months ago | |
---|---|---|
catch-of-the-day | 3 months ago | |
stepped-solutions | 9 months ago | |
.gitignore | 1 year ago | |
package-lock.json | 2 years ago | |
readme.md | 1 year ago |
Starter files for the React For Beginners course. Come Learn React with me!
The code in this repo meant to be a reference point for anyone following along with the video course.
Note - One of the dependencies is Xcode. While installing, if you run into an error that says, gyp: No Xcode or CLT version detected!
please do the following:
xcode-select --install
in terminal.npm install
once more.cd
into catch-of-the-day
and follow along with the videos
Each numbered folder in stepped-solutions
contains the files for the beginning of each correspondingly numbered video, should you need them. So, if you need any code, pull the appropriate file into your catch-of-the-day
folder.
You are welcome to submit Pull Requests but I'd like to keep the code as similar as possible to the course content.
You are welcome to use this code in your own applications. If you would like to use it for training purposes, please shoot me a message first to make sure it's okay.
Restart your dev tools or your chrome browser entirely. They will only show up when you are viewing a React app - so make sure you test it on Facebook or another website that is running React. It won't work on your empty main.js
file until you import React from 'react'
.
npm start
doesn't update the app on file save, or doesn't run correctly.There may be a few different causes for this:
permission_denied
warnings in my console when setting up FirebaseBe sure to select "Realtime database" as as your database type inside Firebase. If you created your database as a Cloud Firestore type, you can change it in the Database tab.
Firebase by default only allows logins from localhost or the Firebase website. You'll need to add your deploy URL to the Authorized Domains in the Sign-in method area of your Firebase console.
In March 2018 I re-recorded this course. Here are the things that I've updated.
this
and component instancesHere is the .htaccess file we use in the apache deployment video
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]