yuntao.qyt
c96979bd75
docs: delete unnecessary brackets
8 years ago
Michele Bertoli
82802a0da9
Make the Shallow Rendering example clearer ( #8269 )
* Make the Shallow Rendering example clearer
I was reading through the documentation, and I found that the `render` call on the `renderer` was missing.
* Use a regular function to define MyComponent
8 years ago
Satoshi Nakajima
1a5d504fb2
Replaced old refs with new callback refs ( #8254 )
8 years ago
Arni Fannar
10733f084a
Update refs-and-the-dom.md ( #8250 )
Since a lot of projects use [airbnb eslint config](https://www.npmjs.com/package/eslint-config-airbnb ) where [this rule](http://eslint.org/docs/rules/no-return-assign ) is enabled (and its a good rule) some people might get confused when they are trying this out in their project.
8 years ago
Ville Immonen
f8a328d6a5
Remove string ref from function component example ( #8244 )
Refs can't be attached to stateless functional components.
8 years ago
Kevin Lacker
809e28223e
forms breakup
8 years ago
Nate
a24967fc25
Fix typos in Shallow Rendering Documentation ( #8226 )
* Fix typos in Shallow Rendering Documentation
* Fix another occurrence
8 years ago
Kevin Lacker
d068700a40
Docs: add a bunch of redirects ( #8137 )
* add a bunch of redirects
* add more redirects
8 years ago
Alex Baumgertner
4d2633215c
Fix method markdown highlight ( #8218 )
8 years ago
Yura Chuchola
47215f9d06
Update forms.md ( #8136 )
The component Form in "Uncontrolled Radio Button" example doesn't need state, because it does not used in render() method.
8 years ago
Skasi
3ecb587b82
Remove duplicated word in doc ( #8157 )
Gets rid of an obsolete word in the documentation for "State and Lifecycle":
"Consider the ticking clock example from the one of the previous sections."
->
"Consider the ticking clock example from one of the previous sections."
8 years ago
Eugene
9c27104e9f
Update reference-react-component.md ( #8126 )
line 320: For example, this code ensures that the `color` prop is a string
8 years ago
Dan Abramov
30aee4908d
Clarify how transition props work ( #8124 )
8 years ago
Andreas Möller
823154cbfc
Fix: Remove unneeded else branches from documentation examples
8 years ago
Dan Abramov
b47e2d77c5
Consistent CodePen links in docs
8 years ago
Lewis Blackwood
3aa40ba6a3
Correct usage of formatName() function in docs ( #8122 )
The code section above these changes defines a `formatName` function
that expects a parameter `user`. The code section containing these
changes incorrectly called `formatName(user.name)`. For those following
along with CodePen, this section should correctly call
`formatName(user)`.
8 years ago
王晓勇
cc0050ddeb
Update forms.md ( #8121 )
8 years ago
Dan Abramov
74eac9addd
Tweak Forms
8 years ago
Eric Nakagawa
5b407f2379
Docs update - Additional ( #8115 )
* Reapplied fixes to updated docs from master
* Reapplied fixes to Forms, removed ES2016 function includes()
* Missing carriage return
* Adding back some line breaks
* Making requested changes.
* Making space changes
* Fixed typo and removed unnecessary hyphen.
* Reworded select, and highlighted line
* Fixed string styles
* Refactored <label> to use htmlFor
* Another refactor of <label>
* Removed name prop from radiobutton
8 years ago
Eric Nakagawa
e5ca6f513a
Forms Update ( #8112 )
* Reapplied fixes to updated docs from master
* Reapplied fixes to Forms, removed ES2016 function includes()
* Missing carriage return
* Adding back some line breaks
* Making requested changes.
* Making space changes
8 years ago
Alex Katopodis
4ff3c13f60
Fix typo in reconciliation.md ( #8110 )
8 years ago
Jae Hun Lee
6e1411c4f1
Update lists-and-keys.md ( #8090 )
There is mismatching variable name both definition and usage.
In line 156, an argument name called item is change to match the usage in line 158.
8 years ago
Toru Kobayashi
27cfc54d16
Fix an argument name of TestUtils.renderIntoDocument ( #8104 )
8 years ago
Constantin Gavrilete
4f96d680c7
removed duplicated 'the' ( #8081 )
8 years ago
Dan Abramov
16d8bd1ff6
Add more highlighting to docs ( #8076 )
* Tweak JSX in Depth
* Add highlighting to Refs and the DOM
* More tweaks
8 years ago
Ashish
d0e054114f
Docs : Fix createClass reference ( #8073 )
Currently react.createClass is wrongly referenced to #react.createclass. Changed it to #createclass!
8 years ago
Dan Abramov
063ed7aacd
Remove references to createClass in createElement docs ( #8064 )
8 years ago
Dan Abramov
8712f6daa0
Link to lifecycle methods from Context doc ( #8062 )
8 years ago
Alireza Mostafizi
25a1e5acae
Update handling-events.md ( #8057 )
8 years ago
Giuseppe
e0704b2590
Docs replace reference to 'getInitialState' with 'state' instance property in "Thinking in React" ( #8059 )
8 years ago
Sebastian Markbåge
8f67f8ffed
Fix relative link in Hello World ( #8041 )
* Fix relative link in Hello World
This links https://facebook.github.io/docs/installation.html which redirects to https://code.facebook.com/
* Update hello-world.md
* Fix link
8 years ago
Oskari Mantere
97a1b89a94
Replace vars with let and const ( #8051 )
8 years ago
Nathan Hardy
4c72dce721
Fix erroneous '}' in JSX examples ( #8043 )
8 years ago
Cody Reichert
66875b66d5
Fix anchor link for displayName ( #8040 )
8 years ago
Ragnar Þór Valgeirsson
7aab5cf706
Convert the Number component to ListItem ( #8039 )
* Convert the Number component to ListItem
* Add updated example CodePen
Also fixes typos.
8 years ago
Christopher Chedeau
501974fc8a
Update components-and-props.md
fb indent style
8 years ago
Christopher Chedeau
3071ad08f5
Update react-without-jsx.md
Facebook codestyle
8 years ago
Dan Abramov
842d44dfa5
Fix redirects
8 years ago
Dan Abramov
7e3f5777cb
Minor doc tweaks
8 years ago
Kevin Lacker
aa9544bfac
New Documentation
8 years ago
Ujjwal Ojha
3c25e09155
Fix typo ( #7909 )
8 years ago
Colin Wren
f1c916dc7f
Fix typo in more-about-refs.md ( #7933 )
8 years ago
Sophia
66b8e25b43
removing parent/child references in props section of tutorial ( #7887 )
8 years ago
Michael O'Brien
f665a4b48a
Update comment to refer to correct method name ( #7873 )
8 years ago
Kateryna
976ca17896
Fix initial state example for Recat.createClass ( #7867 )
In the example there was a typo with setting initial state using `getInitialState` method
8 years ago
ankitml
4f2168e0d5
Use ES6 in Language Tooling doc
9 years ago
KeicaM
5a90ffd6b0
Update 04-multiple-components.md ( #7861 )
added missing map bracket
8 years ago
Marcelo Alves
636bc1114a
Fix minor typo in closing H1 tag ( #7855 )
8 years ago
Ben Alpert
ea7c845a98
Update remarkable to 1.7.1 ( #7851 )
Fixes a subtle XSS hole.
8 years ago
ankitml
8bb9899f0f
Keyed Fragment of AddOns ported to ES6
9 years ago