From e41bfd7210386e2db713b3eff306f90331adfddf Mon Sep 17 00:00:00 2001 From: FenryHord <35921614+FenryHord@users.noreply.github.com> Date: Wed, 4 Jul 2018 13:38:11 +0200 Subject: [PATCH] The board shows the number range 0-8 instaed of 1-9 (#1034) --- content/tutorial/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/tutorial/tutorial.md b/content/tutorial/tutorial.md index 92dc4501..9a052324 100644 --- a/content/tutorial/tutorial.md +++ b/content/tutorial/tutorial.md @@ -404,7 +404,7 @@ The Board's `renderSquare` method currently looks like this: } ``` -In the beginning, we [passed the `value` prop down](#passing-data-through-props) from the Board to show numbers from 1 to 9 in every Square. In a different previous step, we replaced the numbers with an "X" mark [determined by Square's own state](#making-an-interactive-component). This is why Square currently ignores the `value` prop passed to it by the Board. +In the beginning, we [passed the `value` prop down](#passing-data-through-props) from the Board to show numbers from 0 to 8 in every Square. In a different previous step, we replaced the numbers with an "X" mark [determined by Square's own state](#making-an-interactive-component). This is why Square currently ignores the `value` prop passed to it by the Board. We will now use the prop passing mechanism again. We will modify the Board to instruct each individual Square about its current value (`'X'`, `'O'`, or `null`). We have already defined the `squares` array in the Board's constructor, and we will modify the Board's `renderSquare` method to read from it: