Autoplay
Autocomplete
HTML5
Flash
Player
Speed
Previous Lecture
Complete and continue
React Tetris with Hooks
First Section
Introduction (3:38)
create-react-app and tooling (3:17)
Scaffolding out the components (8:54)
Stage and Tetrominos (16:15)
Styling with Styled Components (25:13)
Custom Hooks - usePlayer and useStage (15:32)
Stage update and player movement (24:24)
Collision Detection (13:43)
Player Rotation (13:26)
Clear Rows (7:25)
useInterval (7:09)
useGameStatus and ReactMemo (15:31)
Introduction
Download
Download
React-Tetris-Starter-Files.zip