mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Square renders button, not div (#9084)
(cherry picked from commit 8eb7068364)
This commit is contained in:
committed by
Dan Abramov
parent
1edc84a38c
commit
c7d14df920
@@ -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