From 1a159bea5fcee94ee553385faa39604489ee0d10 Mon Sep 17 00:00:00 2001 From: Dave Voyles Date: Mon, 7 Nov 2016 16:18:43 -0500 Subject: [PATCH 1/2] Update tutorial.md Is it possible to be more clear here? This implies that we are removing the constructor from GAME, and not board (which is what I believe the author is trying to say). It took me several reads to understand. With this edit, it is now clear that the adjustment is being made to -Board- and not to -Game- --- docs/tutorial/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/tutorial.md b/docs/tutorial/tutorial.md index 75e21aeb1781..d770b04fdb0e 100644 --- a/docs/tutorial/tutorial.md +++ b/docs/tutorial/tutorial.md @@ -350,7 +350,7 @@ class Game extends React.Component { } ``` -Then remove the constructor and change `Board` so that it takes `squares` via props and has its own `onClick` prop specified by `Game`, like the transformation we made for `Square` and `Board` earlier. You can pass the location of each square into the click handler so that we still know which square was clicked: +Then remove the constructor from `Board` and change `Board` so that it takes `squares` via props and has its own `onClick` prop specified by `Game`, like the transformation we made for `Square` and `Board` earlier. You can pass the location of each square into the click handler so that we still know which square was clicked: ```javascript return this.props.onClick(i)} />; From 9b352dfca2c9311c0635dc48ecb7bb302ede2822 Mon Sep 17 00:00:00 2001 From: Kevin Lacker Date: Wed, 16 Nov 2016 13:24:06 -0800 Subject: [PATCH 2/2] also remove "for Board earlier" --- docs/tutorial/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/tutorial.md b/docs/tutorial/tutorial.md index d770b04fdb0e..a16e043053af 100644 --- a/docs/tutorial/tutorial.md +++ b/docs/tutorial/tutorial.md @@ -350,7 +350,7 @@ class Game extends React.Component { } ``` -Then remove the constructor from `Board` and change `Board` so that it takes `squares` via props and has its own `onClick` prop specified by `Game`, like the transformation we made for `Square` and `Board` earlier. You can pass the location of each square into the click handler so that we still know which square was clicked: +Then remove the constructor from `Board` and change `Board` so that it takes `squares` via props and has its own `onClick` prop specified by `Game`, like the transformation we made for `Square` earlier. You can pass the location of each square into the click handler so that we still know which square was clicked: ```javascript return this.props.onClick(i)} />;