The Square component received that function as its onSquareClick prop from the Board. Clicking on the upper left square runs the function that the button received as its onClick prop from the Square.Let’s recap what happens when a user clicks the top left square on your board to add an X to it: Keeping the state of all squares in the Board component will allow it to determine the winner in the future. When the Board’s state changes, both the Board component and every child Square re-renders automatically. When clicking on a Square, the child Square component now asks the parent Board component to update the state of the board. Now that your state handling is in the Board component, the parent Board component passes props to the child Square components so that they can be displayed correctly. In fact, we loved it so much that I’ve ordered a few more blank game sets to have on hand for friend birthdays and family gift ideas.Import This DIY Tic Tac Toe Game put a personalized touch on the classic game and made it even more fun for us to play. My kiddos wasted no time playing on the front porch with their new game. The longest part of this project was waiting for supplies to arrive and ModPodge to dry. It was really simple to make and took me less than five minutes to put together. I painted on a light coating of ModPodge (don’t worry, this dries clear) over each sticker to give it some extra protection and durability. I did five with my daughter’s face and four with my stepson’s face. Next, I placed the stickers on the faces of each block. I started by trimming down my photo stickers to size so that they’d fit on the blocks without having to be folded over the edges. Inspired by the warmer weather and our favorite game, I created a board game version of our beloved tic tac toe with a family twist courtesy of these fun photo sticker sheets. With warm summer months in full swing here in Northern Michigan, our front porch has been getting a lot of extra love while we play board games and sip on lemonade. It’s a simple game that all of us can play with ease and is fun for even my older kiddos. Tic tac toe is one of our family’s favorite games.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |