Browse Source

Minor typos (#1057)

main
Mendel Bakaleynik 7 years ago
committed by Sophie Alpert
parent
commit
3155dffae3
  1. 2
      content/tutorial/tutorial.md

2
content/tutorial/tutorial.md

@ -810,7 +810,7 @@ Now we need to decide which component should own the `history` state.
We'll want the top-level Game component to display a list of past moves. It will need access to the `history` to do that, so we will place the `history` state in the top-level Game component.
Placing the `history` state into the Game component lets us remove the `squares` state from its child Board component. Just like we ["lifted state up"](#lifting-state-up) from the Square component into the Board component, we are now lifting it up from the Board into the top-level Game component. This gives the Game component full control over what the Board's data, and lets it instruct the Board to render past turns from the `history`.
Placing the `history` state into the Game component lets us remove the `squares` state from its child Board component. Just like we ["lifted state up"](#lifting-state-up) from the Square component into the Board component, we are now lifting it up from the Board into the top-level Game component. This gives the Game component full control over the Board's data, and lets it instruct the Board to render previous turns from the `history`.
First, we'll set up the initial state for the Game component within its constructor:

Loading…
Cancel
Save