Served as training materials for my React lecture series in Sourcepad Intl. under the Training Kaizen. Had fun teaching the fundamentals of React, hopefully someone teaching React as well can reuse/repurpose these slides + examples. Be sure to drill down some of the example projects on each lecture folder to see more code examples/installation guides.
- Install Node (>= 8.10). Can be installed in a number of ways: via installer, via brew (if you're on MacOS) or from what I recommend, install it via NVM. This will allow you to switch out Node versions on different projects and isolate environments.
- Install npx (if it's not already present). If it's not, run
npm install -g npx
- And that's it! We'll be using npx to run
create-react-app
and generate our sample React application(s).
npx create-react-app my-app
cd my-app
npm start