Paul O’Shannessy
2865e4a1c8
Set default layout for docs
11 years ago
Sam Selikoff
2d7ffc16d6
Clarify section introducing callbacks
11 years ago
Sam Selikoff
37d7982057
Clarify section introducing `props`
11 years ago
Julien Bordellier
ccb9bd2ee2
Using the markdown's quote syntax and explaining why use include jQuery
11 years ago
Julien Bordellier
eb1e6ebf49
Adding a note just below the jQuery inclusion in the tutorial to inform that jQuery is not mandatory.
It's linked with #603
11 years ago
Ben Alpert
9ba8b98a5e
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.
11 years ago
Cheng Lou
40181a0166
[Docs] Fix tutorial line highlights, revert ajax in cb
11 years ago
Cheng Lou
1c50b1dfbb
[Docs] Put tutorial up-to-date with the code
11 years ago
Ben Alpert
2c02b6cac7
Fix tutorial to have exact translation of example
Fixes #903 .
11 years ago
georgesisco
3ab1997f61
Update tutorial.md
11 years ago
George A Sisco III
bc9a92097e
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 .
11 years ago
petehunt
d9efc5aa57
Add thinking in react to the official docs
11 years ago
Ben Alpert
4ab7f4ab8d
Tweak tutorial wording to be more accurate
11 years ago
Nadeesha Cabral
2ad7d1a0ef
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.
11 years ago
Richard D. Worth
835abde4c1
Update tutorial.md to still have jQuery script tag in later code sample
11 years ago
Bob Eagan
b24d241b82
replace "comments.json" with this.props.url
11 years ago
Ben Alpert
4a7ec73d13
Add dataType to all $.ajax calls for consistency
Fixes https://groups.google.com/forum/#!topic/reactjs/WWA3ZqU6y4w .
11 years ago
Ben Alpert
64a5570c1c
Move initial $.ajax out of getInitialState
We want to encourage people to make pure getInitialState functions.
11 years ago
Ivan Kozik
91a049a45e
console.log -> console.error
11 years ago
Ivan Kozik
81f24d13e6
Add a warning about the @jsx declaration
11 years ago
Ivan Kozik
c72efb80c5
Use explicit $.ajax dataType and add error callback
11 years ago
Vjeux
8d938e4a32
Add a talks section to the docs
11 years ago
Cheng Lou
0767e7b9dd
docs make all link start with /react/docs
11 years ago
Kit Randel
990e1e4142
Tutorial template markup needs a reference to jquery for the ajax calls
from step 13 onwards.
11 years ago
Brian Cooke
6d8496dd06
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.
11 years ago
petehunt
ee83ad9f88
Make state immutable in tutorial (eek)
11 years ago
Paul O’Shannessy
67d4e7ebaf
Remove jQuery version number from tutorial docs
11 years ago
Ben Alpert
2f08e7f3d0
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!).
11 years ago
petehunt
7c9eb94833
Update tutorial to use className
11 years ago
Paul O’Shannessy
e484a734b5
Fix 404s to non-existent API docs
11 years ago
Ben Alpert
f566b56ed1
Flesh out reference documentation, more API info
11 years ago
Brian Rue
93a516e41b
Tutorial: show how to add showdown.js
12 years ago
Paul O’Shannessy
3996d95131
[docs] Small tweaks as reported in comments
* highlight `</form>`
* use correct id in `getElementById` call
12 years ago
Clay Allsopp
700c3e24cd
Fix broken tutorial link and change wording
12 years ago
Hugo Jobling
091697a887
remove dead link
the event handling doc page no longer exists
12 years ago
Hugo Jobling
79fca32e1b
put closing paren in correct place
12 years ago
Hugo Jobling
f5d3500cfa
update dead jsx link to point to an extant page
syntax.html no longer exists, so point people at the in depth article instead.
12 years ago
petehunt
85a7336741
cleanup some files, move tutorial
12 years ago
petehunt
1263fde643
move docs around, add likebutton
12 years ago
petehunt
e874be922a
tweak the source
12 years ago
petehunt
7d77fd17ea
update and move tutorial
12 years ago
Mathieu M-Gosselin
38db22b954
Changed JSON data in the tutorial to use double quotes for strings.
12 years ago
Greg Roodt
ddb326a029
Update tutorial.md
The ajax call happens every 5 seconds, not every 60 seconds.
12 years ago
dschafer
c1ef8e9ab4
Highlight additional change in tutorial12.js
tutorial12.js switches from using this.props to this.state. Let's highlight the change on line 10 as well to make that clear.
12 years ago
petehunt
394d23f848
ReactDOM->React.DOM
12 years ago
Ben Alpert
1fc75432da
Add `return false;` to onSubmit handlers
12 years ago
Ben Alpert
441302ee6e
Wording tweaks
12 years ago
Ben Alpert
ccd06e728a
Update stale event docs in tutorial
The example uses onSubmit but the docs were still referring to onKeyUp.
12 years ago
Paul Seiffert
c09a1bd376
Introducing a submit button in the tutorial's comment form
12 years ago
Paul Seiffert
2e0837a574
Highlighting the correct line
12 years ago