Commit Graph

521 Commits

Author SHA1 Message Date
cyan33
1b5cf20dcc add #detecting legacy context apis for strict mode post 2018-05-17 14:40:47 -07:00
Tung Vu
1f8fdac9cc doc: add createRef to Refs glossary (#875)
* doc: add createRef to Refs glossary

* doc: move newer api first
2018-05-12 14:24:27 +01:00
Stephane Moreau
f03e9c785d "Introducing JSX" is missing a step (#812)
* Introducing JSX is missing a step

* Tweak
2018-05-09 18:19:39 +01:00
Alex Krolick
c95de8b59a Clarify defaultValue usage (#868)
Fixes #867
2018-05-07 23:48:13 -07:00
Duc Nghiem Xuan
d0cdc9ef0c Fix elmish-react link on static-type-checking (#857)
`fable-elmish` org is now simply `elmish`, thus the link to `elmish-react` was 404.

ref https://github.com/elmish/elmish/issues/145
2018-05-02 01:00:27 -07:00
Dan Abramov
e3cf355618 Tweak componentWillReceiveProps docs (#856)
* Tweak componentWillReceiveProps docs

* Update reference-react-component.md
2018-05-01 13:11:08 +01:00
Rauno Freiberg
3279bd768b Fix JSX link in design principles section (#855) 2018-04-30 14:51:22 -07:00
Chester Law
f97629e6f0 Fix grammar in List and Keys documentation (#854) 2018-04-30 13:43:24 -07:00
Augustus Yuan
f1bdc9674e Replace meeting notes section with RFCS section (#848) 2018-04-27 22:07:37 +01:00
Eugene Kopich
f40682a583 new "Flow" URL (2) (#839) 2018-04-25 11:39:58 +01:00
Eugene Kopich
b147d01e75 new "Flow" URL (#838) 2018-04-24 18:24:05 +01:00
Jedai Saboteur
049c40109d Linked to an example "from scratch" implementation (#837)
* Add link to complete example

* Fix heading space on complete example
2018-04-24 10:04:14 +01:00
Joep van der Heijden
1c9b6139c4 Add missing semicolon in example code (#835) 2018-04-23 14:38:26 +01:00
Almero Steyn
cd4bc8b341 Merge pull request #797 from jlr7245/jlr7245-add-chromevox
add chromevox to a11y documentation
2018-04-23 07:36:26 +02:00
Michael Li
ed255e604b Fix grammar 2018-04-22 00:37:19 -04:00
J Silverstein
380225e65e add chromevox to a11y documentation 2018-04-20 13:51:46 -04:00
John
a4aa51035a docs(error-boundaries):fix react blog link (#817) 2018-04-17 18:20:30 +01:00
John
233d74e790 docs(error-boundaries):remove react beta reference (#815) 2018-04-17 16:59:05 +01:00
Marc Bouchard
5593059434 docs(refs-and-the-dom): typo in CustomTextInput (#813)
Correct a typo in the render method comments for the "CustomTextInput" component of the "Adding a Ref to a DOM Element" example.  The first line of the comments reads "tell React that we want the associate the <input> ref".  The word "the" should be "to" resulting in the comment "tell React that we want to associate the <input> ref".
2018-04-17 02:37:06 +01:00
Dan Abramov
04124cc053 Promote ref forwarding in "DOM and Refs" (#802) 2018-04-13 18:17:11 +01:00
Lucas Duailibe
dab9b8b2fd Add 'visual components' use case for forwarding refs (#798)
* Add 'visual components' use case for forwarding refs

* Rearrange "forwarding refs" to focus on simple use case

* Minor wording nits to 2018-03-29-react-v-16-3.md

* Minor wording nits to forwarding-refs.md

* Add more info to the forwardRef reference doc

* Minor wording nits to reference-react.md
2018-04-13 17:23:19 +01:00
Brian Vaughn
d453c2c8fb Merge pull request #767 from koba04/customizing-display-name-ref-forwarding
Add a section "Customizing Name in DevTools" in Forwarding Refs
2018-04-11 08:17:28 -07:00
Brian Vaughn
e26547bfc6 Wording nit 2018-04-11 08:16:05 -07:00
Toru Kobayashi
f450adbdec Add a section "Displaying a custom name in DevTools" 2018-04-11 11:56:17 +09:00
Alex Krolick
d7f675d418 "efficient" is vague 2018-04-10 16:29:30 -07:00
Justin Francos
827ade1906 fixed 2 cases of "it's" where it should be "its" (#782)
Its = it + possessive
It's = it is
2018-04-09 11:20:06 -07:00
tjallingt
6521a654cb Added updating nested context default value example (#780)
* added context default value example

* Implement suggested change

* noop function as default value to createContext
2018-04-09 11:12:02 -07:00
tjallingt
e4941f6440 Added example for updating nested context consumer (#776)
* Added an example showing how to update the context from inside a (deeply) nested component

* Wrap comments

* Wrap comments

* Tweak wording

* Prettier

* Prettier

* Typo: "funtion" -> "function"
2018-04-06 18:49:55 -07:00
Dan Abramov
1466232fbf Tweak context 2018-04-06 16:19:11 +01:00
Alex Krolick
6c22a4345b Clarify when Consumers get the default value (#770)
* Clarify when Consumers get the default value

* Change wording
2018-04-06 15:14:46 +01:00
Rauno Freiberg
4f5d4b08cb nit: minor reordering of words (#772) 2018-04-06 15:05:07 +01:00
Alex Krolick
9c9cee0b08 Merge pull request #771 from codecrutch/fix-createref-example
Move constructor out of render
2018-04-05 11:24:51 -07:00
Sean Snyder
e1689b0f20 Move constructor out of render 2018-04-05 14:16:00 -04:00
Kent C. Dodds
17f2a6f9d0 Update addons-test-utils.md 2018-04-05 12:11:54 -06:00
Kent C. Dodds
9c39cb117f add reference to react-testing-library
Because it will help engineers write better tests with react.
2018-04-05 10:09:59 -06:00
Alex Krolick
17efddc63d Merge pull request #756 from raunofreiberg/createref-docs
Add createRef to top level API section
2018-04-03 10:16:54 -07:00
Alex Krolick
861544b16c Move createRef above forwardRef 2018-04-03 10:16:19 -07:00
Alex Krolick
1dccf07a89 ~the~
fixes #763
2018-04-03 10:13:42 -07:00
Dan Abramov
cf7329d6bd Tweak wording 2018-04-03 17:00:53 +01:00
rk162
1f21aaabb2 Update introducing-jsx.md (#761) 2018-04-03 15:00:29 +01:00
Rauno
3709c8e4ef Add link to refs-and-the-dom in description 2018-04-03 01:32:51 +03:00
Rauno
9948cc94e3 Add createRef to top level API section 2018-04-02 22:20:22 +03:00
chucksellick
dbe5b49bbf Fix a very small typo (#754)
"potential" -> "potentially"
2018-04-02 18:23:30 +01:00
Cristian Garabagiu
82a402168d Fixed broken URL (#750) 2018-04-01 13:34:58 +01:00
Asher Michael
c1c9714041 Update context.md (#751)
Corrected a grammar error in one of the notes section.
2018-04-01 13:34:24 +01:00
chucksellick
abd3af9a3d Recommend getDerivedStateFromProps (#747)
Fix a couple of paragraphs that recommended UNSAFE_componentWillReceiveProps
where it would now be more correct to recommend getDerivedStateFromProps.
2018-03-31 19:41:01 +01:00
Almero Steyn
a5a622e2c4 a11y-doc: Adjust Focus Control to new 16.3 refs + link fixes. (#742)
* a11y-doc: Adjust Focus Control to new 16.3 refs + link fixes.

* Update accessibility.md
2018-03-30 16:51:42 +01:00
Shovon Hasan
62638c8b2d Fix broken link in UNSFE_componentWillReceiveProps docs. (#744) 2018-03-30 15:53:44 +01:00
Dan Abramov
2bd8eda1fc Update refs-and-the-dom.md 2018-03-30 15:44:14 +01:00
Tatyana Tsvetkova
72fd7ff75a Update accessibility.md (#708)
Fix for broken links to W3C
2018-03-30 15:09:02 +01:00