![]() The squares state of the Board component was updated, so the Board and all of its children re-render. ![]() handleClick uses the argument ( 0) to update the first element of the squares array from null to X.It calls handleClick with an argument of 0. The Board component defined that function directly in the JSX. The Square component received that function as its onSquareClick prop from the Board. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |