/React-For-Beginners-Starter-Files

Starter files for learning React.js with React for Beginners

Primary LanguageJavaScript

React For Beginners — ReactForBeginners.com

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.

👉 👉 👉 👉 To Start 👈 👈 👈 👈

  1. Copy the first folder to catch-of-the-day
  2. cd into catch-of-the-day and follow along with the videos

Each folder contains only the changed files for each video, 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.

Code Use

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.

Frequently Asked Questions

❓ Where are folders 2, 3, and 8?

Not all the videos have significant enough code changes to warrant an entire folder. Although you should be coding them all yourself, the code is available in the next video's folder.

❓ Firebase updated — does it still work with this tutorial?

Yep! 100%. The only change is that Firebase DBs aren't open by default anymore. To change this, click on the rules tab and set your security settings to the set below. We go over securing it in the last video.

{
  "rules": {
    ".read": true,
    ".write": true
  }
}

❓ I tried installing the Babel syntax highlighter but it didn't work!

There are a few possible options:

  • If you are on Sublime Text 2, you should Upgrade to Sublime Text 3.
  • Some users have reported restarting works
  • You can try the JavaScript Next syntax highlighter instead

❓ I can't set Babel as the default syntax highlighter!

Make sure you are in a file with the extension of .js before you do this step - you can't set the default for a file without having a file open!

❓ I can't see the React tab in my dev tools

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 var React = require('react')

❓ What Sublime Text Packages are you using?

❓ What is your terminal theme?

It's ZSH + Cobalt2 for iTerm2. I did a whole video series on it → CommandLinePowerUser.com

❓ I'm getting a weird error when I try run Gulp or any of it's tasks

Make sure you have the latest Node and NPM installed. If you run node -v && npm -v and get anything less than 4.0 and 3.0 you should download the installer from http://nodejs.org to upgrade.

❓ How do I use npm without sudo?

Running npm commands with sudo may cause security issues. Node and npm works well without super user privileges. Fortunately there is a very easy fix. Please follow the steps on this article by Pawel Grzybek. Enjoy using npm without 'sudo' now.

❓ The watching isn't working or stops after 2-3 saves

This is a known problem with watchify / watching files. It happens mostly on Ubuntu, but can happen on osx and windows as well. You can switch to polling for an easy fix.

Open your gulpfile.js and change watchify(browserify(props)) to watchify(browserify(props), { poll: true }) .