Shubheksha Jalan
a409b4df32
Improved sections of state and lifecycle docs
2016-11-18 22:14:27 +05:30
Dan Abramov
5aea26b4b3
Merge pull request #8332 from gaearon/prod-dev
...
[Docs] Expand Installation and clarify why use bundlers
2016-11-18 12:26:22 +00:00
Dan Abramov
36564ab0fa
Nits
2016-11-18 12:26:06 +00:00
Kevin Lacker
ba8004f607
add link to useful doc
2016-11-17 10:49:02 -08:00
Dan Abramov
d7e37c6dfb
Explain Installation in more detail
2016-11-17 15:55:56 +00:00
Dan Abramov
aad104265a
Tweak examples
2016-11-17 14:23:20 +00:00
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.
2016-11-16 14:32:42 -08:00
Brandon Dail
9621017ec2
Merge pull request #8277 from qiuyuntao/master
...
docs: delete unnecessary brackets
2016-11-14 17:37:02 -06:00
Anastasia A
125153c109
Update reference-react-dom.md
...
Add missing closing bracket
2016-11-14 10:33:07 +03:00
yuntao.qyt
c96979bd75
docs: delete unnecessary brackets
2016-11-13 16:29:18 +08:00
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
2016-11-11 15:34:11 +00:00
Satoshi Nakajima
1a5d504fb2
Replaced old refs with new callback refs ( #8254 )
2016-11-10 14:13:56 +00:00
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.
2016-11-09 14:45:21 -08:00
Ville Immonen
f8a328d6a5
Remove string ref from function component example ( #8244 )
...
Refs can't be attached to stateless functional components.
2016-11-09 16:38:36 +00:00
Kevin Lacker
809e28223e
forms breakup
2016-11-08 21:38:03 +00:00
Nate
a24967fc25
Fix typos in Shallow Rendering Documentation ( #8226 )
...
* Fix typos in Shallow Rendering Documentation
* Fix another occurrence
2016-11-08 20:29:27 +00:00
Kevin Lacker
d068700a40
Docs: add a bunch of redirects ( #8137 )
...
* add a bunch of redirects
* add more redirects
2016-11-08 19:32:02 +00:00
Alex Baumgertner
4d2633215c
Fix method markdown highlight ( #8218 )
2016-11-07 11:57:23 -06:00
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.
2016-10-31 17:35:20 -07:00
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."
2016-10-31 11:42:02 +00:00
Eugene
9c27104e9f
Update reference-react-component.md ( #8126 )
...
line 320: For example, this code ensures that the `color` prop is a string
2016-10-27 19:25:43 +01:00
Dan Abramov
30aee4908d
Clarify how transition props work ( #8124 )
2016-10-27 14:21:34 +01:00
Andreas Möller
823154cbfc
Fix: Remove unneeded else branches from documentation examples
2016-10-27 13:12:37 +01:00
Dan Abramov
b47e2d77c5
Consistent CodePen links in docs
2016-10-27 13:06:09 +01:00
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)`.
2016-10-27 13:01:04 +01:00
王晓勇
cc0050ddeb
Update forms.md ( #8121 )
2016-10-27 10:26:31 +01:00
Dan Abramov
74eac9addd
Tweak Forms
2016-10-27 02:02:29 +01:00
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
2016-10-27 00:14:08 +01:00
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
2016-10-26 13:45:25 -07:00
Alex Katopodis
4ff3c13f60
Fix typo in reconciliation.md ( #8110 )
2016-10-26 17:13:55 +01:00
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.
2016-10-26 14:17:21 +01:00
Toru Kobayashi
27cfc54d16
Fix an argument name of TestUtils.renderIntoDocument ( #8104 )
2016-10-26 13:44:46 +01:00
Constantin Gavrilete
4f96d680c7
removed duplicated 'the' ( #8081 )
2016-10-24 17:34:58 -05:00
Dan Abramov
16d8bd1ff6
Add more highlighting to docs ( #8076 )
...
* Tweak JSX in Depth
* Add highlighting to Refs and the DOM
* More tweaks
2016-10-24 15:48:46 +01:00
Ashish
d0e054114f
Docs : Fix createClass reference ( #8073 )
...
Currently react.createClass is wrongly referenced to #react.createclass. Changed it to #createclass!
2016-10-24 13:34:17 +01:00
Dan Abramov
063ed7aacd
Remove references to createClass in createElement docs ( #8064 )
2016-10-23 15:48:58 +01:00
Dan Abramov
8712f6daa0
Link to lifecycle methods from Context doc ( #8062 )
2016-10-23 14:35:23 +01:00
Alireza Mostafizi
25a1e5acae
Update handling-events.md ( #8057 )
2016-10-23 13:44:29 +01:00
Giuseppe
e0704b2590
Docs replace reference to 'getInitialState' with 'state' instance property in "Thinking in React" ( #8059 )
2016-10-23 13:41:37 +01:00
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
2016-10-22 21:56:53 +01:00
Oskari Mantere
97a1b89a94
Replace vars with let and const ( #8051 )
2016-10-22 21:55:29 +01:00
Nathan Hardy
4c72dce721
Fix erroneous '}' in JSX examples ( #8043 )
2016-10-22 21:45:29 +01:00
Cody Reichert
66875b66d5
Fix anchor link for displayName ( #8040 )
2016-10-22 21:44:51 +01:00
Ragnar Þór Valgeirsson
7aab5cf706
Convert the Number component to ListItem ( #8039 )
...
* Convert the Number component to ListItem
* Add updated example CodePen
Also fixes typos.
2016-10-22 21:44:28 +01:00
Christopher Chedeau
501974fc8a
Update components-and-props.md
...
fb indent style
2016-10-21 18:30:25 -07:00
Christopher Chedeau
3071ad08f5
Update react-without-jsx.md
...
Facebook codestyle
2016-10-21 14:30:35 -07:00
Dan Abramov
842d44dfa5
Fix redirects
2016-10-21 22:02:30 +01:00
Dan Abramov
7e3f5777cb
Minor doc tweaks
2016-10-21 21:47:43 +01:00
Kevin Lacker
aa9544bfac
New Documentation
2016-10-21 20:59:08 +01:00
Ujjwal Ojha
3c25e09155
Fix typo ( #7909 )
2016-10-12 09:49:56 -05:00