DEV Community

ReactJS Tic-Tac-Toe (💥Passed Job Interview💥)

Let's Code on February 19, 2022

Hello Everyone! I wanted to share my success on my previous job interview where I was asked to code a tic-tac-toe game in ReactJS and was able to p...
Collapse
 
jusrecondo profile image
jusrecondo • Edited

Thanks for the exercise!
It helped me to prepare for an upcoming interview.
I made this version with some variations ;)
codepen.io/jusrecondo/pen/GRBxPJv

Collapse
 
frontendengineer profile image
Let's Code

glad to hear that my post helped out in some way. Good luck on your upcoming interview.

Collapse
 
amn3s1a2018 profile image
Amn3s1a2018

If I was the interviewer, I would ask you about the asynchronous setSquares function. Also would be nice to refactor isX and isThereWinner to derived state

Collapse
 
frontendengineer profile image
Let's Code

nice follow up questions. thanks for sharing.

Collapse
 
frontendengineer profile image
Let's Code • Edited

Where you asked to do the same challenge on your previous job interviews?

Should this coding challenge even be used when screening out candidates?

Collapse
 
veronicamarie24 profile image
Veronica Valenzuela

This was really good practice for me, do you have any other react interview coding challenges like this one? What level would you say this question would be good for?

Collapse
 
frontendengineer profile image
Let's Code • Edited

Hi Veronica,

here is a good one that I get a lot of great feedback - dev.to/frontendengineer/10-reactjs...

I would say this is a good question for senior devs/engineers

Collapse
 
mopano profile image
Mopano

Great , thanks for Information. Have you got group in Telegram or ... that we can join and ask our Problems ? If Not, we can do this together😃

Collapse
 
sf_esports profile image
SF Esports

How the previous choices are being stored ?

Collapse
 
frontendengineer profile image
Let's Code

on the handleClick - setSquares(squares)