38 Commits

Author SHA1 Message Date
Henry Harris 5686ab15d6 Tiny changes to tutorial (#10048)
* Initial commit

* PR feedback
2017-06-29 16:00:48 +01:00
Carolina Powers 5c25cda519 Fix typo on tutorial.md. (#9644)
The absence of the word `this` will cause CodePen
to scream at you. This fix should avoid that.
(cherry picked from commit 7c1e971e7f)
2017-05-10 08:24:32 +01:00
Dan Abramov c9864556e9 Fix sequencing in the Tutorial (#9615)
* Fix sequencing in the Tutorial

* Update tutorial.md

* Update tutorial.md

(cherry picked from commit 138ff5e46b)
2017-05-05 18:05:45 +01:00
Dan Abramov d2be47b8c4 Tweak Tutorial based on feedback 2017-05-04 00:30:27 +01:00
Frankie Bagnardi aa1570cf35 [Tutorial] Make it easier to follow the instructions (#9454)
* tutorial: adds note about onClick

* tutorial: show full square component

* merge

* fixes line number

* tutorial: misc changes

* fixes Board render initial code sample

* [tutorial] adds codepen links and misc small fixes

* removes useless arrow functions, #9531

* {this.renderSquare} new lines

* be more explicit about history state

* fixes highlight

* following along locally

* changes todo to this.props.value

* removes calculateWinner from initial codepens and includes it in tutorial

* removes note about calculateWinner at end of file

* adds debug-view and debug-view-final

* removes debug view, updates codepen instructions

* adds another codepen

* tutorial.md

* tutorial.md

* tutorial.md

* tutorial.md

* Put . into links for consistency with docs

* Make the very first change easier to follow

* A few more changes

(cherry picked from commit e9d6f3f10e)
2017-05-01 17:23:27 +01:00
RSG 5bb1ad113e React.createElement syntax (#9459)
* React.createElement syntax

Added React.createElement syntax.
I think this is required for this tutorial.

* Reword

(cherry picked from commit 9824d52a4c)
2017-04-26 17:32:12 +01:00
Fabrizio Castellarin 6ef3fde642 Reorganize the "following along" instructions (#9453)
* Reorganize the "following along" instructions

* Minor tweaks

(cherry picked from commit 1ce562ead3)
2017-04-19 12:33:51 +01:00
Dan Abramov 85b3cdec82 Tweak tutorial structure 2017-04-18 18:07:27 +01:00
Dan Abramov e6df2eccfe Minor tutorial nits 2017-04-18 17:54:07 +01:00
Dan Abramov 3e44b5dc25 Fix duplicate sentence 2017-04-18 17:44:44 +01:00
Dan Abramov f8ade2b30c Minor tweaks to tutorial 2017-04-18 17:41:17 +01:00
Frankie Bagnardi 53a0064533 [Tutorial] ES6, installation, and button closing tag (#9441)
* adds notes to tutorial on es6 and installation

* fixes tutorial mention of opening button tag

* More writing

* Update
2017-04-18 17:36:09 +01:00
hanumanthan 3a8effb4fb Lift state up - Updating the documentation to mention that onClick is a synthetic event handler (#9427)
* Lift state up - Updating the documentation to mention that onClick is a synthetic event handler

* Review comments - Rephrase to handle synthetic events and event handler patterns

* Tweak

(cherry picked from commit 53a3939fb0)
2017-04-18 16:51:04 +01:00
Fokke Zandbergen c7d14df920 Square renders button, not div (#9084)
(cherry picked from commit 8eb7068364)
2017-03-09 20:44:06 +00:00
Dai Nguyen c04ced9c7e Update tutorial.md (#9051)
(cherry picked from commit d724aed404)
2017-03-09 20:44:05 +00:00
Dan Abramov 4a2fad0d04 Fix indentation in tutorial (#8914)
(cherry picked from commit 9e3a31b2c6)
2017-02-02 13:25:22 +00:00
Eduard 2d130bfba2 Update tutorial.md (#8896)
* Update tutorial.md

The status <div> used in Board can be deleted as well from render.

* Little tweaks

(cherry picked from commit dc04ee87ae)
2017-02-02 13:25:22 +00:00
Tiago Fernandez d5eb5a23c6 Link to CodePen editor rather than final result (#8849)
People want to see the final JS/CSS/HTML, and the final result is already displayed by CodePen.
(cherry picked from commit 05f5bf6eb6)
2017-02-02 13:25:22 +00:00
Jeffrey Wan 73a6762fe2 Update tutorial.md (#8792)
* Update tutorial.md

* Fix quoting to be consistent

(cherry picked from commit 3f5482ee20)
2017-02-02 13:25:22 +00:00
John Longanecker 952b7dec91 Lifting State Up more legible (#8691)
(cherry picked from commit b8f0522cc6)
2017-02-02 13:25:22 +00:00
Faheel Ahmad 632b53edde I -> we (#8817)
(cherry picked from commit c8a41672ed)
2017-01-18 12:45:34 -06:00
cloudy1 e453eebe3f Update tutorial.md (#8328)
* Update tutorial.md

fix "unknown: Unexpected token" in "codepen.io".

* tweaks per suggestion
2017-01-04 15:54:57 +00:00
Mikhail Osher 91676a619a Fix object spread operator (#8378)
Object spread operator performs shallow copy of object's arguments, so it should be placed before new properties are assigned.
2016-11-22 15:54:22 +00:00
Tanner d7db851253 Remove spread operator (#8273)
* Remove spread operator

I believe what was meant here was to express that you would create the new player object with all the previous properties of the existing player object in addition to now updating the score value. That being said, this is a simple example, and the player object clearly has no other values. Objects are not (by default) iterable using this operator, so this little piece does more harm than good. I believe the new example to be much clearer.

* Using Object.assign()

* Tweak wording
2016-11-17 14:35:21 +00:00
Dave Voyles d220385c53 Clarity on constructor of Board object for tutorial.md (#8224)
* 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-

* also remove "for Board earlier"
2016-11-17 14:35:04 +00:00
Kevin Lacker 3fe1664601 Docs: add a bunch of redirects (#8137)
* add a bunch of redirects

* add more redirects
2016-11-08 19:32:31 +00:00
bel3atar e2a70ac0ea add missing verb (#8139)
`why is an` should be `why it is an`
2016-11-08 19:20:28 +00:00
Lutz Rosema ca8ddfda02 Use const instead of var (#8107)
It clarifies that `history` and `current` won't be reassigned.
2016-10-27 01:10:15 +01:00
Marcio Puga 933898b457 Fix typos (#8067) 2016-10-24 15:52:46 +01:00
Andrew Poliakov 6a89bc9be0 Update tutorial.md, Taking Turns (#8058) 2016-10-23 13:52:00 +01:00
William Hoffmann b06fd4b36d Fix typo (#8056) 2016-10-23 13:51:31 +01:00
Jun Kim 2d37da10db Fix illogical code in tutorial.md (#8048)
The tutorial wants to throw a 'warning' and explains about 'key' of React's list, but it throws nothing since there is sensible key.
"key={move}" should be removed, and added after explaining about key.
2016-10-23 13:51:04 +01:00
Jason Grlicky b46d90e09d Fix for typos (#8046) 2016-10-23 13:50:51 +01:00
Jun Kim b82f13546f Fix typo in tutorial.md (#8047)
changges -> changes
2016-10-22 22:07:06 +01:00
Taeho Kim 3979c734a2 Fix typo in new tutorial code (#8045) 2016-10-22 22:06:54 +01:00
BEAUDRU Manuel a7cb3ace36 Wrong library name reference in tutorial.MD (#8038)
* Update tutorial.md

Seems like you are talking about immutable.js and not immutability.js which doesn't exist :)

* Capitalize Immutable.js
2016-10-22 22:05:40 +01:00
Dan Abramov 60ec3c6b37 Fix redirects 2016-10-21 22:01:06 +01:00
Kevin Lacker 1cf81c1aa9 New Documentation 2016-10-21 21:00:10 +01:00