Well I decided to bite the bullet and implement React in my Tic-Tac-Toe project (an initial sketch of the project had enough jQuery DOM manipulation to make me want to gouge my eyes out), and it turns out that React isn’t the hard part!
I’m working to implement minimax as per Ahmad Abdolsaheb, and I’m pretty sure I’ve implemented it correctly (and checked it against his example). When I endeavor to run it in codepen however, I get Firefox’s “too much recursion” error, which I could maybe understand given that it’s trying to implement every end state of the game except for the fact that Ahmad’s implementation on Codepen works! Can anyone see anything I’m missing that’s causing the recursion to go infinite? My project is here.