Markov56 / react-redux-tic-tac-toe

0 stars 0 forks source link

extract the logic into utils #1

Open alen-hast opened 3 years ago

alen-hast commented 3 years ago

https://github.com/Markov56/react-redux-tic-tac-toe/blob/dee4cb9f595cf2d591d668b1e5e942f9126209fa/src/index.js#L35

Do we need to keep calculateWinner there? I guess it's better to be extracted into utils or so.

Btw, do you have any ideas on how to avoid using loops in this function?

Markov56 commented 3 years ago

thx, I will extract it. Hm, why do we have to avoid loop in this func?