mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 12:43:05 +00:00
Square renders button, not div (#9084)
This commit is contained in:
committed by
Brandon Dail
parent
3eb88b008a
commit
97e8b7db4b
@@ -72,7 +72,7 @@ In particular, we have three components:
|
||||
* Board
|
||||
* Game
|
||||
|
||||
The Square component renders a single `<div>`, the Board renders 9 squares, and the Game component renders a board with some placeholders that we'll fill in later. None of the components are interactive at this point.
|
||||
The Square component renders a single `<button>`, the Board renders 9 squares, and the Game component renders a board with some placeholders that we'll fill in later. None of the components are interactive at this point.
|
||||
|
||||
(The end of the JS file also defines a helper function `calculateWinner` that we'll use later.)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user