🕹️ Levels: 😎 Intermediate
⏳ Duration: 0.5 hours
🤑 Price: Subscription
🧑💻 Learning Platform: Egghead.io
🧑🎓 Certificate: No
🔑 Key Learning Outcomes
- Utilize guard statements to check for wins and ties.
- Pass handleClick functions into a child component to modify parent state.
- Keep state immutable by cloning and returning new state.
- Utilize data structures effectively.
👨🏫 About the Course
Learn how to manage complex game state in React by building a Tic Tac Toe game. This course covers creating a 3x3 grid, implementing game logic, and using useReducer to manage state effectively.
🎯 Target Audience
- Ideal for intermediate developers familiar with React and JavaScript who want to enhance their state management skills.
✅ Requirements
- Basic knowledge of React and JavaScript is required.
📖 Course Content
- Create a 2-Dimensional Grid for our Tic-Tac-Toe Game.
- Map Over a 2-Dimensional Array to Create a Game Grid in React with CSS Grid.
- Convert a 3x3 Tic-Tac-Toe Grid Interactive by Adding Buttons in React.
- Handle User Input by Adding State to the Tic-Tac-Toe Grid with React useReducer.
- Reset React State with a Button and Function in our Tic-Tac-Toe Game.
- Check for Winning Conditions in React useReducer for Tic-Tac-Toe.
- Prevent Impossible States and Check for Draw Conditions with Guard Statements in React.
Drop a comment
Manage Complex Tic Tac Toe Game State in React by Kyle Shevlin
Log in to leave a feedback
Login👇 Psst! Interested in More React Courses?

Create a Zustand-like Module State LibraryVideo
by Daishi Kato
🕹️ Levels: 😎 Intermediate
⏳ Duration: 0.5 hours
🤑 Price: Subscription
🧑💻 Learning Platform: Egghead.io

PRO VR Applications using React 360Video
by Tomasz Łakomy
🕹️ Levels: 😎 Intermediate
⏳ Duration: 0.5 hours
🤑 Price: Subscription
🧑💻 Learning Platform: Egghead.io


Scale React Development with NxVideo
by Juri Strumpflohner
🕹️ Levels: 😎 Intermediate
⏳ Duration: 1.5 hours
🤑 Price: Free
🧑💻 Learning Platform: Egghead.io