Schedule > 9. Introduction to React
Week 10: Mon, Mar 13
Readings
Before beginning the React assignment – and definitely before Friday’s tutorial – please complete the following readings. It will take you a few hours, but you won’t be able to make progress with React without understanding some of the core React conventions and workflow, including:
- Quick Start
- Thinking in React. Make note of the steps:
- Break the UI into a component hierarchy
- Build a static version in React
- Find the minimal but complete representation of UI state (noting the difference between “props” and “state”
- Identify where your state should live
- Adding “inverse data flow”
- Sharing state between components
- Tic Tac Toe
- You are strongly encouraged to do this on your own (see Tic Tac Toe)
Other References (As Needed)
Slides
- Lecture 16 & 17: Intro to React
Videos & Lecture Files
Videos and worked examples will be published after class:
Activities
- Lecture 16 Activity (Monday): Create a carousel
- Lecture 17 Activity (Wednesday): Create a data-driven carousel
- Recommended Activity (to prep for Friday): Do the Tic Tac Toe React Tutorial