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 currently not working with Node.js 10.3, please use version 9.11.1 (or around that, 8.x and 9.x should work fine) until then.
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.
One of the dependencies is currently not working with Node.js 10.3, please use version 9.11.1 (or around that, 8.x and 9.x should work fine) until then. Don’t sweat this as it’s just build tooling and isn’t related to the version of react you are using.
There are a few possible options:
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!
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:
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]