Commit Graph
1390 Commits
Author SHA1 Message Date
comercandBrandon Dail 92665e2cb1 Fix casing typo in jsx-in-depth.md (#8542) 2016-12-11 07:43:40 -06:00
ChrisandBrandon Dail 39695dcd36 update example to use this.state (#8425)
- In the previous example, the code works even without using bind(this) in the constructor.
- the reason being handleClick doesn't even use `this` and its just calling the global function alert.
- this change make use of this via access this.state.
2016-12-11 07:41:48 -06:00
LizandSebastian Markbåge 17f8e947fb 👏 designers are friends, not fodder for jokes (#8523) 2016-12-07 15:09:37 -08:00
Brandon DailandGitHub 33198b78c5 Merge pull request #8476 from AlanBreck/patch-1
Update reference-react.md
2016-12-02 09:16:39 -06:00
lucas 01eb94f04b Add return to render 2016-12-01 19:21:40 -03:00
Jacob LamontandGitHub 469d3c6461 Update reference-react.md 2016-12-01 14:35:48 -05:00
Andrew ClarkandKevin Lacker ce3b7ca475 Add a document on higher-order components (#7869) 2016-11-29 10:47:54 -08:00
Richard MaisanoandDan Abramov b59fb796ea Add a couple missing SVG tags to DOM Elements docs (#8383)
My first contribution to React!

While upgrading a React project, I found some suspect SVG that needed updating, so I dug in after checking the docs. I knew that support for some SVG properties had been added (namely `xmlns` and `xmlnsXlink`), but I noticed them missing from the reference's attribute list. This pull request updates `reference-dom-elements.md` by adding said properties.
2016-11-22 18:50:11 +00:00
Simen BekkhusandDan Abramov e64510ab21 Fix link to PureComponent in docs (#8375) 2016-11-22 11:09:07 +00:00
Michael SinovandDan Abramov 501ac150f6 update react-without-es6.md (#8351) 2016-11-19 18:19:16 +00:00
Dan AbramovandGitHub 12ef47ba8f Merge pull request #8346 from shubheksha/docs/improve-state-and-lifecycle
Improved sections of state and lifecycle docs
2016-11-18 18:24:27 +00:00
Dan AbramovandGitHub a0044be99d Minor changes, make it more verbose 2016-11-18 18:24:15 +00:00
Shubheksha Jalan 730dae1df6 Improved sections of state and lifecycle docs 2016-11-18 22:14:27 +05:30
Dan AbramovandGitHub 57f0cf376f Merge pull request #8345 from shubheksha/docs/improve-introducing-jsx
Improved some sections of the introducing JSX docs
2016-11-18 16:20:48 +00:00
Dan AbramovandGitHub c47340acfb Small nit: add a sentence about readability back 2016-11-18 16:20:17 +00:00
Shubheksha Jalan e4432c7f76 Improved some sections of the introducing JSX docs 2016-11-18 21:09:34 +05:30
Dan AbramovandGitHub 1c861a0d48 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 AbramovandGitHub 0b1d56399b Nits 2016-11-18 12:26:06 +00:00
Kevin Lacker 02966c7945 add link to useful doc 2016-11-17 10:49:02 -08:00
Dan Abramov db140c887f Explain Installation in more detail 2016-11-17 15:55:56 +00:00
Dan Abramov 3186a8b984 Tweak examples 2016-11-17 14:23:20 +00:00
Marcy SuttonandGitHub e08be27b0c 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 DailandGitHub 024f62ecfe Merge pull request #8277 from qiuyuntao/master
docs: delete unnecessary brackets
2016-11-14 17:37:02 -06:00
Anastasia AandGitHub 3a7b3b070b Update reference-react-dom.md
Add missing closing bracket
2016-11-14 10:33:07 +03:00
yuntao.qyt 41b4d3958c docs: delete unnecessary brackets 2016-11-13 16:29:18 +08:00
Michele BertoliandDan Abramov 53e45e78e4 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 NakajimaandDan Abramov 3e708497d2 Replaced old refs with new callback refs (#8254) 2016-11-10 14:13:56 +00:00
Arni FannarandKevin Lacker f4059e5e5b 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 ImmonenandDan Abramov 3668a2e678 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 LackerandDan Abramov 3a09f4bf30 forms breakup 2016-11-08 21:38:03 +00:00
NateandDan Abramov 2317fcaccb 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 LackerandDan Abramov d885894c6e Docs: add a bunch of redirects (#8137)
* add a bunch of redirects

* add more redirects
2016-11-08 19:32:02 +00:00
Alex BaumgertnerandBrandon Dail 5166a1b446 Fix method markdown highlight (#8218) 2016-11-07 11:57:23 -06:00
Yura ChucholaandKevin Lacker abeae306e5 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
SkasiandDan Abramov abf37ea484 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
EugeneandDan Abramov 0e23880d22 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 AbramovandGitHub e1b140225a Clarify how transition props work (#8124) 2016-10-27 14:21:34 +01:00
Andreas MöllerandDan Abramov 1e126c29dd Fix: Remove unneeded else branches from documentation examples 2016-10-27 13:12:37 +01:00
Dan Abramov a4b9abff42 Consistent CodePen links in docs 2016-10-27 13:06:09 +01:00
Lewis BlackwoodandDan Abramov dba8f25854 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
王晓勇andDan Abramov e3688d1fa3 Update forms.md (#8121) 2016-10-27 10:26:31 +01:00
Dan Abramov cc3dc21be0 Tweak Forms 2016-10-27 02:02:29 +01:00
Eric NakagawaandDan Abramov 552033e33b 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 NakagawaandKevin Lacker 47e665a2fc 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 KatopodisandDan Abramov 2ba571c246 Fix typo in reconciliation.md (#8110) 2016-10-26 17:13:55 +01:00
Jae Hun LeeandDan Abramov ce2dee32fd 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 KobayashiandDan Abramov d49dfe7da4 Fix an argument name of TestUtils.renderIntoDocument (#8104) 2016-10-26 13:44:46 +01:00
Constantin GavrileteandBrandon Dail 82d592a0fa removed duplicated 'the' (#8081) 2016-10-24 17:34:58 -05:00
Dan AbramovandGitHub e1ee94ca17 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
AshishandDan Abramov 8333b891e4 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