Commit Graph
2313 Commits
Author SHA1 Message Date
Dan AbramovandGitHub 86e91aaa00 Delete addons (#9209)
* Delete addons

* Remove ReactFragment dependency from tests

* Remove addons testing from fixtures

* Don't mention createFragment() in a warning

* Address feedback

* Remove unused variables

* Remove mention of deleted file

* Add a missing key to the test

* Fix lint
2017-03-20 16:15:01 +00:00
CodinCatandDan Abramov ce2f40219b Use single quotes, remove extra whitespace (#9215) 2017-03-19 18:34:53 +00:00
Andrew Clark 4f878b00e7 Add prettier instructions to PR template and contribution guide 2017-03-16 11:53:44 -07:00
Jamison DanceandBrandon Dail 10dd74ae2f Add React Rally to conferences list (#9179) 2017-03-15 14:20:57 -10:00
Bernard LinandDan Abramov 441e239f15 Updated React Native EU (#9170)
* Updated Chain React

Changed conference date from "Summer 2017" to given date on website

* Updated React Native EU 

Updated date and place with information from website
2017-03-13 22:43:03 +00:00
AdamandDan Abramov d2f8f6e41d Remove ref usage in main markdown example (#9160)
from [elsewhere in the docs](https://facebook.github.io/react/docs/refs-and-the-dom.html):

> Avoid using refs for anything that can be done declaratively.
2017-03-12 15:29:10 +00:00
Dan AbramovandGitHub d71dd9f258 Reorder sections in alphabetical order (#9143)
* Reorder sections in alphabetical order

* Reorder here too
2017-03-09 20:46:55 +00:00
Dima BeznosandBrandon Dail 56ab9c0bb4 Added Brunch build tool to the docs (#9074)
* Added Brunch build tool to the docs

* Improved grammar

* product build -> production build
2017-03-03 16:15:25 -06:00
Sunny RipertandBrandon Dail c833f6c510 Fix spacing in documentation (#9070)
Replace non-breaking space by space.
2017-03-02 13:57:58 -06:00
Vesa LaaksoandDan Abramov daaad4e750 Update Lifting State Up not to mix up DOM value with component state (#9032)
* Update Lifting State Up not to mix up DOM value with component state

A few weeks ago when teaching my friend, she got stuck on
`this.state.value` vs. `event.target.value`. As the documentation
talked a lot about "values", and the term value could mean three
different things (values in general, the "value" prop / DOM value of
the <input> component and the value in state/props), it was not weird
that she got a bit confused.

* Rename Lifting State Up onChange props to onTemperatureChange

This is in-line with how the temperature is provided as a prop named `temperature`

* Fix one value prop not being renamed to temperature

* Update codepen examples in Lifting state up documentation

* Update devtools state change to reflect docs change
2017-03-02 00:28:09 +00:00
Bryan BraunandKevin Lacker a2c91d2546 Replace the header_links plugin with client-side generated anchors. (#4165)
* Replace the header_links plugin with client-side generated anchors.

Fixes facebook/react#4124

* Move anchor-link code into a separate script

Also adds a couple comments, for context.
2017-03-01 11:52:54 -08:00
Fokke ZandbergenandBrandon Dail 9ce4c4c851 Square renders button, not div (#9084) 2017-03-01 09:40:45 -06:00
Bernard LinandBrandon Dail 50bf35f40f Updated Chain React (#9067)
Changed conference date from "Summer 2017" to given date on website
2017-02-27 09:53:47 -06:00
Dai NguyenandBrandon Dail 4d5715ce51 Update tutorial.md (#9051) 2017-02-23 14:54:03 -06:00
StephieandDan Abramov 39fd5459b9 Fixed typo: "Calcutor" to "Calculator" (#9047) 2017-02-22 17:37:55 +00:00
Dan AbramovandGitHub 16979f34f7 Add more details to the doc 2017-02-19 12:07:54 +00:00
Dan AbramovandGitHub 29042f527c Doc consistency tweaks 2017-02-19 11:58:42 +00:00
Roman MatusevichandDan Abramov 466f511fa3 Remove extra article from documentation (#9028) 2017-02-19 11:10:50 +00:00
DanZeussandDan Abramov ae5ab6637b Improved for a better understanding (#8970)
* Improved for a better understanding

that code shouldn't name this parameter onchange. It is so confusing for a starter of ReactJs like me. It looks like that the onChange is an common event from props.

* Update the lifting state up paragraph

I tried to write something to explain to starter programmers in react, how we lift the state up calling a method defined by the ancestor and called by the children that will affect the children element.

* Rewrite Lifting State Up
2017-02-19 02:21:05 +00:00
Dan AbramovandGitHub 16df061ebc Revert "update react perf docs (#8060) and (#6174)" (#8997) 2017-02-13 23:43:08 +00:00
Dan AbramovandGitHub 62fef69e71 Update Thinking in React embed to match the link (#8996) 2017-02-13 23:25:47 +00:00
Sean GranseeandBrandon Dail 57621733ec fix misspellings in comments and tests (#8946)
* fix misspellings in comments and tests

* revert change in docs/js/react-dom.js
2017-02-13 16:01:54 -06:00
Dan AbramovandGitHub bdfb380129 Revert "Fix createNodeMock doc to avoid Invariant Violation" (#8990) 2017-02-13 20:15:49 +00:00
BDav24andDan Abramov 1caec1665d Fix createNodeMock doc to avoid Invariant Violation (#8989) 2017-02-13 20:13:31 +00:00
JiminikizandBrian Vaughn 8f59e3d277 Fixing grammatical error ... (#8987)
... in the Create React App section.
2017-02-13 10:04:09 -08:00
Prayag VermaandDan Abramov 27eeedbf1a Fix a typo in design principles doc (#8985)
unambigious → unambiguous
2017-02-13 15:09:00 +00:00
Moacir RosaandDan Abramov c6437c0122 Only fix a small wrong key in example (#8976)
Only fix a small wrong key in example
2017-02-10 15:40:24 +00:00
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