Andrew Clark
b5172001e1
Clarify that string refs are considered legacy. ( #6692 )
9 years ago
djskinner
bd2c2495eb
Refer to correct example ( #6760 )
I *think* this should refer to the second example, where the instance to the ref is stored. In any case please can someone confirm for my own understanding?
9 years ago
Stefan Dombrowski
9ca5408aaa
[docs] Small fixes to "more about refs"
* Add a null check to "A Complete Example".
* Fix outdated comment. (Found by @mjomble )
* Replace short dash - with longer dash –.
* Remove backticks from state, because it is not code.
9 years ago
Iurii Kucherov
edb5c824f3
Update 08.1-more-about-refs.md
9 years ago
Baraa Hamodi
a38a848170
Documentation cleanup.
9 years ago
Ben Alpert
b637cb3193
Updat docs for refs/findDOMNode
9 years ago
Jim
33cd980f0e
React -> ReactDOM for render() and findDOMNode()
9 years ago
Jim
c426902fca
Added documentation for stateless components, condensed the two pages about refs into a single page.
9 years ago
arush
2b0c95d3be
DOCS - typo in ref callback example
deleted extra ending curly brace in arrow function
9 years ago
Ben Alpert
a70b6148cb
Clarify use of arrow functions
Per 1db20999f0 (commitcomment-12865588)
.
10 years ago
Leon Yip
932d5fff9a
Update 08.1-more-about-refs.md
Change render to `render()` for consistency within the paragraph.
10 years ago
Ben Alpert
8e468a830e
Spruce up refs docs
Fixes #4651 .
10 years ago
Ben Alpert
2bcc761667
counterexample -> antipattern
10 years ago
Kohei TAKATA
dd992dede8
Enclose a name of function in back quote
10 years ago
Tsung Hung
04fac68f10
updated some typos, grammers, and made sentences sound better
10 years ago
Jim
d25e5aed00
Added docs about the ref-as-callback.
10 years ago
Jim
7114950cd1
Updated docs examples/recommendations to use findDOMNode instead of getDOMNode
10 years ago
Sebastian Markbage
4202fcd9c5
Replace transferPropsTo with transferring props patterns
10 years ago
Paul O’Shannessy
2865e4a1c8
Set default layout for docs
11 years ago
Ben Alpert
43ecc6a7f0
Clarify refs and setState callback documentation
11 years ago
Ben Alpert
3ab4c340bb
Fix preposition capitalization
11 years ago
Ben Alpert
004db11878
Update refs example code to use onChange
Fixes #1408 .
Test Plan: Copy each code snippet into jsbin; type in the text box successfully; click the button and see the input clear (and in the second example, get focused).
11 years ago
Keito Uchiyama
3eb25ebafe
Fix typo in doc
11 years ago
Keito Uchiyama
9eeee6960f
Fix use of "it's" in docs
11 years ago
Cheng Lou
31c46182c0
fix typos
12 years ago
Paul O’Shannessy
71636174d8
Cleanup "More About Refs"
12 years ago
Paul O’Shannessy
f2345ba2e2
Remove numbers from URLs.
This will let us keep docs in order on the filesystem but have
reasonable permalinks. If we add something at 02- it doesn't result in
lots of broken links.
12 years ago
Paul O’Shannessy
17ea30c8c5
Fix title casing and heading levels
12 years ago
petehunt
1263fde643
move docs around, add likebutton
12 years ago
petehunt
53d8a64442
fix some links
12 years ago
petehunt
988efdee73
Reorg docs, write a lot of content, import a lot of stuff from dex
12 years ago