Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
1×
Become a member
to unlock all features
Autoplay

    Using React Hooks to Build a Tic-Tac-Toe Game with Kent C. Dodds

    Joel HooksJoel Hooks
    reactReact

    To help accelerate our understanding of React Hooks, Kent is going to live-code a tic-tac-toe app from the ground up taking a Hooks first approach!

    Hooks allow you to better separate your app's visual components from its state and functionality. Kent takes an accessibility and readability first approach to React development, so using hooks to separate your concerns makes your app easier to debug as well as reducing the mental and visual overhead when you are making sense of the code, making your code all around more maintainable.

    • useHooks.com

    • Data is static information, state changes over your component's lifetime

    • Reducers let you move logic from your component to your pure reducer function. Changes to state always go to the same function, it's great for debugging.

    • Reducer concepts are covered excellently in Dan Abramov's Getting Started with Redux course
    Code

    Code

    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson
    Discuss

    Discuss