Build your own unbeatable Tic Tac Toe with React Hooks and Styled Components

Alex Khomenko
Level Up Coding
Published in
9 min readOct 31, 2020

--

Having been working with React for a few years already, I realised that I have only used the framework for developing websites and mobile applications. With the addition of the Hooks, I thought it would be interesting to make a small game, to get a bit more into how React lifecycle works. For the game choice, I decided to convert a jQuery version of Tic Tac Toe, I built a few years ago, to React, which proved more challenging in the end than I expected. The final version of the game can be found here and the code is available…

--

--

Front-end developer. Writing about React, Styled-components/emotion and everything around JavaScript.