Commit Graph
2286 Commits
Author SHA1 Message Date
Dhyey ThakoreandKevin Lacker 5f56402914 update react perf docs (#8060) and (#6174) (#8236)
* update react perf docs issue 8060 and 6174

* Grammar

Small stuff
2017-02-07 14:00:08 -08:00
Andrew ClarkandGitHub a898877b7f Merge pull request #8927 from mitenka/patch-5
Update higher-order-components.md
2017-02-06 11:42:31 -08:00
KBandDan Abramov c2d1dd8bc8 [docs] Add note about refs on stateless components (#8916)
* Add note about refs on stateless components

* Move info about refs in the stateless components to the main section

* Simplification of the part about refs and functional components

* Tweaks

* Move sections around

* Oops

* Rearrange more sections
2017-02-06 16:49:36 +00:00
Dmitry Zhuravlev-NevskyandGitHub 8befa1f7c0 Update higher-order-components.md 2017-02-04 03:35:06 +03:00
Diego MuraccioleandDan Abramov f50fd551c4 Add onToggle event to details tag (#8831)
* Add onToggle event to details tag

Fixes #8761

* Map onToggle event on ReactDOMFiberComponent

* Tweak doc

* Trap events on setInitialProperties for details tag
2017-02-03 10:25:09 +00:00
Pontus AbrahamssonandDan Abramov a98d305bea Update conferences.md (#8915)
* Update conferences.md

* Move confs around
2017-02-02 13:37:27 +00:00
Omid HezavehandDan Abramov 9476dfc91e Explain arbitrariness of ref name in callback (#8913)
* Explain arbitrariness of ref name in callback 

The sample code was confusing because it's not clear that "textInput" in this.textInput is an arbitrary name for the ref.

* Tweak wording
2017-02-02 13:33:12 +00:00
Dan AbramovandGitHub 5fd07d03b3 Fix indentation in tutorial (#8914) 2017-02-02 13:24:26 +00:00
EduardandKevin Lacker 9b52bb2ca6 Update tutorial.md (#8896)
* Update tutorial.md

The status <div> used in Board can be deleted as well from render.

* Little tweaks
2017-02-01 18:12:00 -08:00
Tiago FernandezandKevin Lacker 8c042a2439 Link to CodePen editor rather than final result (#8849)
People want to see the final JS/CSS/HTML, and the final result is already displayed by CodePen.
2017-02-01 18:02:44 -08:00
Jeffrey WanandKevin Lacker 20776d818a Update tutorial.md (#8792)
* Update tutorial.md

* Fix quoting to be consistent
2017-02-01 17:42:19 -08:00
John LonganeckerandKevin Lacker e5ec539897 Lifting State Up more legible (#8691) 2017-02-01 17:31:01 -08:00
Vladimir KovpakandBrandon Dail 3cf4014566 Added undefined example (#8899)
Into section `Booleans, Null, and Undefined Are Ignored` I've added example with undefined.
2017-01-31 07:24:29 -06:00
Senin RomanandBrandon Dail 81cb401c73 Fix incorrect markup for ie10 (#8886) 2017-01-30 18:32:07 -06:00
MICHAEL JACKSONandDan Abramov be23547b2b Update context example for react-router v4 beta (#8889)
* Update context example for [email protected]

* Style nits
2017-01-30 17:36:47 +00:00
Mitchel HumpherysandBrandon Dail 42aba84d23 installation.md: Add missing "as" (#8871) 2017-01-25 23:33:49 -06:00
ScottandDan Abramov 0cfdc0e759 Add benchmarking tutorial (#8698)
* Add benchmarking tutorial

I've written what I hope is the simplest introduction to benchmarking React components. It's meant to be straightforward and easy to follow for beginners. If you agree that it would be helpful, I'd like to add it to the docs.
Would also welcome any and all feedback.

* Just put links together
2017-01-25 15:14:18 +00:00
Oscar BolmstenandDan Abramov bde3a6cb2f webpack 2 is now stable (#8859)
Remove notice about different webpack versions
Update webpack URLs
2017-01-25 14:56:52 +00:00
Keyan ZhangandDan Abramov 977fd70938 Add a link to "State Updates are Merged" in the forms doc (#8851)
* Added a link to "State Updates are Merged"

* better inline links

* moved the explanation down

* Minor unrelated tweaks
2017-01-23 21:09:48 +01:00
mguidottoandDan Abramov 32346994a1 Update conferences.md (#8841)
* Update conferences.md

* Update conferences.md

path fixed

* Changed capitalization to match the website and Twitter
2017-01-23 20:31:21 +01:00
Dan Abramov aa933015f1 Clarify use of ES6 idiom in Forms doc 2017-01-23 17:59:44 +00:00
Justin GrantandDan Abramov 3d0c7c87e4 Reminder: strip quotes from attributes with JS code (#8806)
* Reminder: strip quotes from attributes with JS code

Web developers who are used to standards-compliant HTML and XML will, out of habit, put quotes around all attributes because the standards require them. Other templating systems like ASP.NET also require (or at least allow) quotes around attributes that contain code. This behavior will get users into trouble in JSX because a quoted attribute is always treated as a string literal, even if it contains curly-braced javascript code.  Let's add to the docs to help newbies evade this problem.

* Tweak wording
2017-01-23 18:09:35 +01:00
Ragnar Þór ValgeirssonandDan Abramov 97a31c7f52 Match eslint's line length settings (#8845) 2017-01-23 17:47:48 +01:00
SunHuaweiandDan Abramov 23f68c4d9b Fix a typo (#8580) 2017-01-23 17:43:48 +01:00
EugeneGarbuzovandBrandon Dail 284b028b43 Corrected a typo. (#8837)
shoud -> should
2017-01-20 13:25:21 -06:00
Keyan ZhangandDan Abramov 1ac4a78178 Add "Handling Multiple Inputs" to Forms doc (#8552)
* added "Handling Multiple Inputs"

* renamed and added a codepen

* simplified the example
2017-01-17 22:19:46 -08:00
Rohan NairandDan Abramov a348b7e934 Updating Thinking in React doc to replace refs with event handlers (#8815)
* Updating Thinking in React doc to replace refs

* Updating doc copy to reflect changes to example
2017-01-17 10:17:32 -08:00
Faheel AhmadandDan Abramov 400d63973a I -> we (#8817) 2017-01-17 10:01:40 -08:00
DQNEOandDan Abramov 1b6ea9bca2 use an easier word (#8809)
* use an easier word

The word `mandatory` is relatively difficult for people with ESL (English as a second language), so I propose an alternative word.
This would be much easier to understand.

* use simpler word
2017-01-17 10:00:11 -08:00
Jack CrossandDan Abramov 4fb5d01986 Add Flow reminder to PR template (#8805)
* Added flow to PR template

* Added record-tests step to PR template and contribution docs

* Updated order of PR checks
2017-01-17 06:34:44 -08:00
Rich HarrisandDan Abramov 6beadf0bce add docs for building with Rollup (#8799)
* add docs for building with Rollup

* Tiny unrelated fix
2017-01-17 05:55:49 -08:00
SuperlazinessandDan Abramov ffb39103cc fix HOC doc (#8802) 2017-01-16 06:49:01 -08:00
Vladimir TikunovandBrandon Dail 45092113b7 Remove error ref to the 'render' function (#8781)
What is the `render` function of a functional component?
2017-01-14 13:36:55 -06:00
Iurii KucherovandDan Abramov b2e76484c5 Update higher-order-components.md (#8780) 2017-01-13 13:17:48 -08:00
WhienandDan Abramov 2bd1ab1782 move blog post [Profiling Components with Chrome Timeline] into docs article (#8680)
* move blog post into docs article

* move to second section and changed description

* Minor tweak
2017-01-12 07:06:15 -08:00
Snowmanzzz(Zhengzhong Zhao)andDan Abramov bb1d0bc972 Update handling-events.md (#8762)
* Update handling-events.md

* Update handling-events.md
2017-01-12 06:30:43 -08:00
Tomáš HromadaandDan Abramov 4242a7a603 Added more info about refs in the documentation (#8707)
* Update refs-and-the-dom.md

I want to propose some changes to the Refs and the DOM documentation page. 
- Make it clear that string refs are legacy. It seems that this information got lost during the transition to new docs and only some part stayed the same, which was confusing when first reading the docs.
- Clarify and explain that during render, if the ref callback is provided, it will get called twice, first with `null` and then with the rendered DOM element. Discussed in https://github.com/facebook/react/issues/4533 and first proposed docs change in PR #8333.

I've also planned on adding an example for passing the refs up the component chain based on something I've needed to solve myself (e.g. you want to connect two dynamic components by line in React, so you need to both use refs and propagate them up the chain), and while it would be great to read up on this in the docs, it may be too specific for this section; I'd be happy to hear any recommendations.

* Adds more specific information about the callback

* Moved the ref callback description to the Caveats section

* Fixed suggested nits

* Replace 'each render pass' with 'updates'

* Tweak the wording
2017-01-10 12:18:23 -08:00
Dmitry Zhuravlev-NevskyandDan Abramov f9f07545f2 Fix single vs plural (#8738)
Maybe it's not very important, just misprint fix
2017-01-10 08:00:16 -08:00
Spen TaylorandDan Abramov 7f4b3f3f35 [Docs] Replace 'mix in' in PureComponent notes (#8730)
* [Docs] Replace 'mix in' in PureComponent notes

* Style nit
2017-01-10 06:02:22 -08:00
Dmitry Zhuravlev-NevskyandDan Abramov 8acd8b58a6 Swap components (#8735)
It's better to delare component before using.
2017-01-10 02:48:53 -08:00
Richie ThomasandBrandon Dail a6409ce8ca Remove one extraneous backtick from line 116 of 'codebase-overview.md' (#8724). (#8726) 2017-01-09 14:06:37 -06:00
Stuart HarrisandDan Abramov 3c8c37f7e3 Added React London conference, March 28th (#8722)
Thanks :-)
2017-01-09 09:28:20 -08:00
Nik NybyandDan Abramov f8c254aa17 docs: add missing period in shouldComponentUpdate doc (#8720) 2017-01-09 08:22:04 -08:00
Bruno HeridetandBrandon Dail 3ad990a2f1 docs(hoc): fix typo Rambda → Ramda (#8712) 2017-01-08 10:26:46 -06:00
Brandon DailandGitHub bac9d6bac5 Point all Webpack links to 1.x documentation (#8697)
* Point all Webpack links to 1.x documentation

* Add back webpack production guide, add warning
2017-01-06 12:51:26 -06:00
Murtaza HaveliwalaandGitHub f2624ceaac Update rendering-elements.md
Updating text to be in sync with sample html
2017-01-06 23:32:26 +05:30
Murtaza HaveliwalaandBrandon Dail 25c8aeb2bd Updated hello world explanation message (#8703)
Output text in explanation now in sync with code sample
2017-01-06 11:59:14 -06:00
Piotr CzajkowskiandDan Abramov b888d1395e "Don't Mutate the Original Component" example and description mismatch (#8695) 2017-01-05 05:12:51 -08:00
Piotr CzajkowskiandDan Abramov ab26702ef2 Higher-Order Components docs withSubscription() example fix (#8694) 2017-01-05 04:56:13 -08:00
Andre GironandDan Abramov b1c93636f3 Fix typos (#8632)
* Fix typos

* Put back x in Latinx
2017-01-04 09:36:19 -08:00