Commit Graph
69 Commits
Author SHA1 Message Date
Sophia Westwood a19966f2ea Correctly highlight changed line in tutorial.
This excerpt adds the onSubmit handler to the form element, but the line was not highlighted as having been modified.
2015-01-21 17:15:31 -08:00
Paul O’Shannessy d6aa588dfc Merge pull request #2360 from beausmith/patch-1
Highlighted changed lines in examples
2015-01-16 13:10:00 -08:00
Paul O’Shannessy 8babd0ada3 [docs] Talk about running a server in tutorial
We've talked about this a few times and even half done it. This is for
real.
2015-01-07 17:26:54 -08:00
Alexander Tseung a53270267f Update tutorial.md for grammatical changes
Update tutorial.md to improve grammatical parallelism in features list. Also added periods to follow first item's syntax.

BEFORE: "Live updates: as other users comment we'll pop them into the comment view in real time"
AFTER: "Live updates: other users' comments are popped into the comment view in real time."

BEFORE: "Markdown formatting: users can use Markdown to format their text"
AFTER: "Markdown formatting: users can use Markdown to format their text."
2014-12-15 23:43:26 -08:00
Sam Saccone 8e47082fb6 Update tutorial language to be more explicit.
The word "Friends" does establish a relationship however it does not fit in the vernacular of react. 
This change makes the phrase more explicit and more familiar.
2014-11-18 12:36:20 -05:00
John Heroy 129d66a62e Add comma for readability in tutorial 2014-10-28 15:22:40 -07:00
Paul O’Shannessy eb2827ec6a Update React.DOM -> React.createElement through docs 2014-10-28 11:06:30 -07:00
Ben Alpert 52494f9d72 Update docs to align with 0.12 better
- Rename React.renderComponent -> React.render
- Remove most references to transferPropsTo
2014-10-22 14:01:54 -07:00
Cheng Lou 1b3b432d64 [Docs] Remove most of @jsx
I kept some places intact (search for @jsx) because they require other bigger changes:

- ref-01-top-level-api.md
- grunt/tasks/npm.js
- old blog posts (don't change those)
- examples/ folder, as they have their own package.json that rely on old dependencies (node-jsx, reactify) that haven't upgraded to 0.12
2014-10-20 14:44:07 -04:00
Beau Smith df36c258b3 Highlighted changed lines in examples 2014-10-15 23:01:05 -07:00
Simon Welsh 611abfbcb7 Correct highlighted block 2014-09-06 20:46:19 +10:00
jon madison 3e59977046 corrected highlighted/updated line in tutorial example 2014-09-04 16:07:34 -07:00
Michael Randers-Pehrson c999785fa0 Adding e.preventDefault() to handleSubmit,
Also added plain `return`, updated text.
2014-08-22 08:27:23 -04:00
Michael Randers-Pehrson 6c926094c3 Including missing validation check
The validation check was removed from the update to the CommentForm handleSubmit function.
2014-08-21 23:00:05 -04:00
Paul O’Shannessy 4c7cd13ab3 Set default layout for docs 2014-08-13 11:40:14 -07:00
Sam Selikoff 90888debd0 Clarify section introducing callbacks 2014-08-10 16:47:06 -04:00
Sam Selikoff 255f238cee Clarify section introducing props 2014-08-09 19:24:40 -04:00
Julien Bordellier 46c0bbfb11 Using the markdown's quote syntax and explaining why use include jQuery 2014-08-04 10:42:55 +02:00
Julien Bordellier 5eca8d604f Adding a note just below the jQuery inclusion in the tutorial to inform that jQuery is not mandatory.
It's linked with #603
2014-08-02 11:32:31 +02:00
Ben Alpert 774f5a022e tutorial: Fetch data in componentDidMount instead
In a world where this component was server-rendered, we wouldn't want to call the data-fetching code there so it makes more sense to have it in componentDidMount.
2014-07-10 22:33:09 -07:00
Cheng Lou 66d6e3f391 [Docs] Fix tutorial line highlights, revert ajax in cb 2014-06-30 01:01:48 -07:00
Cheng Lou 58a463f01c [Docs] Put tutorial up-to-date with the code 2014-06-29 21:46:16 -07:00
Ben Alpert 2e3cf459ba Fix tutorial to have exact translation of example
Fixes #903.
2014-05-28 10:29:34 -07:00
georgesisco 287db7017e Update tutorial.md 2014-04-10 14:51:10 -04:00
George A Sisco III af7ea7c999 Carry ajax error checking from step #13 forward to other ajax steps
The following steps also have an ajax function, but the 'error:' param
is gone after #13:
#14
#17
#19
#20
This may be superfluous, but it helped me find an error with something I
was doing - Namely, in my .json file, I had single line javascript
comments ("//") that I copied from the tutorial. I couldn't find the
issue on later steps, but was able to see my issue when the error
handler complained about an unexpected "/" in my file in step #13.
2014-04-09 13:42:13 -04:00
petehunt a0ecf47242 Add thinking in react to the official docs 2014-03-03 10:37:33 -08:00
Ben Alpert 89d4d352e1 Tweak tutorial wording to be more accurate 2014-02-20 11:40:14 -08:00
Ben Alpert f37474b75b Merge pull request #1034 from nadeeshacabral/patch-1
Fixed sample code fence highlight
2014-02-12 23:23:49 -08:00
Ben Alpert bc27325d31 Merge pull request #1003 from rdworth/patch-1
Update tutorial.md to still have jQuery script tag in later code sample
2014-02-07 00:08:22 -08:00
Nadeesha Cabral 5f941628e0 Fixed missing lighted line
The line number added had been changed from the previous representation of the code fence, but was not highlighted. Therefore, fixed.
2014-02-06 19:11:19 +05:30
Richard D. Worth e58064a8db Update tutorial.md to still have jQuery script tag in later code sample 2014-01-31 12:13:52 -06:00
Bob Eagan 7614af3c9a replace "comments.json" with this.props.url 2014-01-24 08:52:00 -07:00
Ben Alpert eb2ac7f2f2 Add dataType to all $.ajax calls for consistency
Fixes https://groups.google.com/forum/#!topic/reactjs/WWA3ZqU6y4w.
2014-01-13 19:54:09 -08:00
Ben Alpert cce91611aa Move initial $.ajax out of getInitialState
We want to encourage people to make pure getInitialState functions.
2013-12-29 00:14:05 -07:00
Pete Hunt 82c4e897dc Merge pull request #733 from ivan/master
Use explicit $.ajax dataType and add error callback
2013-12-28 22:15:08 -08:00
Ivan Kozik 17f14d523b console.log -> console.error 2013-12-29 06:12:45 +00:00
Ivan Kozik 0647c2ee98 Add a warning about the @jsx declaration 2013-12-29 05:51:07 +00:00
Ivan Kozik f03d6e212a Use explicit $.ajax dataType and add error callback 2013-12-29 05:32:46 +00:00
Vjeux 91780d1c58 Add a talks section to the docs 2013-12-24 07:20:42 +01:00
Cheng Lou 30672654c5 docs make all link start with /react/docs 2013-12-19 17:15:01 -05:00
Kit Randel 08babd2541 Tutorial template markup needs a reference to jquery for the ajax calls
from step 13 onwards.
2013-12-18 15:13:45 +13:00
Brian Cooke 42dee34146 Update highlighted lines in tutorial
Minor issue, but I found it distracting that the highlighted lines were not accurate. I *believe* this fixes them up.
2013-12-09 15:16:37 -08:00
petehunt f7103a8629 Make state immutable in tutorial (eek) 2013-11-08 13:27:20 -08:00
Paul O’Shannessy 9f3ef1b6ac Remove jQuery version number from tutorial docs 2013-11-05 11:29:00 -08:00
Ben Alpert 5386cd9665 tutorial: Simplify ajax options
dataType was unnecessary; mimeType was both unnecessary and wrong in this case. Also removed an unnecessary bind and changed pollInterval to 2000 ms for consistency with https://github.com/petehunt/react-tutorial (faster is nicer if you actually try it out!).
2013-11-05 11:17:37 -08:00
petehunt 6c1e8e8a66 Update tutorial to use className 2013-11-04 17:04:25 -08:00
Paul O’Shannessy fc0b68af28 Fix 404s to non-existent API docs 2013-09-24 16:00:52 -07:00
Ben Alpert 364d6029b6 Flesh out reference documentation, more API info 2013-09-17 16:01:57 -07:00
Brian Rue 403b087e97 Tutorial: show how to add showdown.js 2013-08-30 16:29:01 -07:00
Paul O’Shannessy e11c4ecbaf [docs] Small tweaks as reported in comments
* highlight `</form>`
* use correct id in `getElementById` call
2013-08-28 14:42:07 -07:00