Dan Abramov
9c9ecee640
Minor changes, make it more verbose
8 years ago
Shubheksha Jalan
a409b4df32
Improved sections of state and lifecycle docs
8 years ago
Dan Abramov
5c995eebba
Small nit: add a sentence about readability back
8 years ago
Shubheksha Jalan
448aa90482
Improved some sections of the introducing JSX docs
8 years ago
Dan Abramov
36564ab0fa
Nits
8 years ago
Kevin Lacker
ba8004f607
add link to useful doc
8 years ago
Dan Abramov
d7e37c6dfb
Explain Installation in more detail
8 years ago
Dan Abramov
aad104265a
Tweak examples
8 years ago
Marcy Sutton
017a36c6f9
fix(a11y): add missing labels to forms doc
Showing how to create a form without labeling inputs is an accessibility anti-pattern. This change adds labels to the examples to address that. Codepen may still need to be updated depending on how that example is created.
8 years ago
Anastasia A
125153c109
Update reference-react-dom.md
Add missing closing bracket
8 years ago
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