Congrats! You now have a small app built with React. Now, how can we keep the current game when our window or browser closes? Often, we want to keep the state of something without writing to a database. We do this through something called Local Storage.
For this project, your job is to learn about local storage and implement it in your Tic-Tac-Toe game. After you're done, users should be able to refresh their page or close their browser, and in each case return to the game as they left it.
Here is a great article to get you started.
-
Update your game so that after each move, the state of the game is saved to local storage. You should be able to refresh your window or close it entirely, and still return to the game as you left it.
-
Add a button allowing users to start over (reset the game, and clear local storage).
-
Create a new branch and then new Pull Request and assign it to your coach for review.