Alexander Tseung
52dc9aec01
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
df28c4779c
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
35e1db2bac
Add comma for readability in tutorial
2014-10-28 15:22:40 -07:00
Paul O’Shannessy
febd05b900
Update React.DOM -> React.createElement through docs
2014-10-28 11:06:30 -07:00
Ben Alpert
fb46ad0356
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
33c7ee6112
[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
Simon Welsh
54e88388b1
Correct highlighted block
2014-09-06 20:46:19 +10:00
jon madison
2d6231f486
corrected highlighted/updated line in tutorial example
2014-09-04 16:07:34 -07:00
Michael Randers-Pehrson
83cf623476
Adding e.preventDefault() to handleSubmit,
...
Also added plain `return`, updated text.
2014-08-22 08:27:23 -04:00
Michael Randers-Pehrson
65874732b0
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
2865e4a1c8
Set default layout for docs
2014-08-13 11:40:14 -07:00
Sam Selikoff
2d7ffc16d6
Clarify section introducing callbacks
2014-08-10 16:47:06 -04:00
Sam Selikoff
37d7982057
Clarify section introducing props
2014-08-09 19:24:40 -04:00
Julien Bordellier
ccb9bd2ee2
Using the markdown's quote syntax and explaining why use include jQuery
2014-08-04 10:42:55 +02:00
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
2014-08-02 11:32:31 +02:00
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.
2014-07-10 22:33:09 -07:00
Cheng Lou
40181a0166
[Docs] Fix tutorial line highlights, revert ajax in cb
2014-06-30 01:01:48 -07:00
Cheng Lou
1c50b1dfbb
[Docs] Put tutorial up-to-date with the code
2014-06-29 21:46:16 -07:00
Ben Alpert
2c02b6cac7
Fix tutorial to have exact translation of example
...
Fixes #903 .
2014-05-28 10:29:34 -07:00
georgesisco
3ab1997f61
Update tutorial.md
2014-04-10 14:51:10 -04:00
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 .
2014-04-09 13:42:13 -04:00
petehunt
d9efc5aa57
Add thinking in react to the official docs
2014-03-03 10:37:33 -08:00
Ben Alpert
4ab7f4ab8d
Tweak tutorial wording to be more accurate
2014-02-20 11:40:14 -08:00
Ben Alpert
9bc90ba05c
Merge pull request #1034 from nadeeshacabral/patch-1
...
Fixed sample code fence highlight
2014-02-12 23:23:49 -08:00
Ben Alpert
36f250bf9c
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
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.
2014-02-06 19:11:19 +05:30
Richard D. Worth
835abde4c1
Update tutorial.md to still have jQuery script tag in later code sample
2014-01-31 12:13:52 -06:00
Bob Eagan
b24d241b82
replace "comments.json" with this.props.url
2014-01-24 08:52:00 -07:00
Ben Alpert
4a7ec73d13
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
64a5570c1c
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
d24fbf6d7b
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
91a049a45e
console.log -> console.error
2013-12-29 06:12:45 +00:00
Ivan Kozik
81f24d13e6
Add a warning about the @jsx declaration
2013-12-29 05:51:07 +00:00
Ivan Kozik
c72efb80c5
Use explicit $.ajax dataType and add error callback
2013-12-29 05:32:46 +00:00
Vjeux
8d938e4a32
Add a talks section to the docs
2013-12-24 07:20:42 +01:00
Cheng Lou
0767e7b9dd
docs make all link start with /react/docs
2013-12-19 17:15:01 -05:00
Kit Randel
990e1e4142
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
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.
2013-12-09 15:16:37 -08:00
petehunt
ee83ad9f88
Make state immutable in tutorial (eek)
2013-11-08 13:27:20 -08:00
Paul O’Shannessy
67d4e7ebaf
Remove jQuery version number from tutorial docs
2013-11-05 11:29:00 -08:00
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!).
2013-11-05 11:17:37 -08:00
petehunt
7c9eb94833
Update tutorial to use className
2013-11-04 17:04:25 -08:00
Paul O’Shannessy
e484a734b5
Fix 404s to non-existent API docs
2013-09-24 16:00:52 -07:00
Ben Alpert
f566b56ed1
Flesh out reference documentation, more API info
2013-09-17 16:01:57 -07:00
Brian Rue
93a516e41b
Tutorial: show how to add showdown.js
2013-08-30 16:29:01 -07:00
Paul O’Shannessy
3996d95131
[docs] Small tweaks as reported in comments
...
* highlight `</form>`
* use correct id in `getElementById` call
2013-08-28 14:42:07 -07:00
Clay Allsopp
700c3e24cd
Fix broken tutorial link and change wording
2013-08-21 22:38:44 -07:00
Hugo Jobling
091697a887
remove dead link
...
the event handling doc page no longer exists
2013-07-18 11:05:39 +01:00
Hugo Jobling
79fca32e1b
put closing paren in correct place
2013-07-18 10:44:22 +01:00
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.
2013-07-18 10:36:54 +01:00