Dan Abramov
9d62821e9e
Tweak refwording
2019-01-25 18:12:30 +00:00
Dan Abramov
4d61b4a19d
Add Hooks to reference page
2019-01-25 15:22:36 +00:00
Alex Krolick
165ae047b4
Add note about Promise polyfill for React.lazy ( #1556 )
...
* Add note about Promise polyfill for React.lazy
Fixes #1552
* Backticks
2019-01-15 10:11:28 -08:00
Dan Abramov
0c96df0cd1
Add Suspense and lazy to API reference ( #1446 )
...
* Add Suspense and lazy to API reference
* Update content/docs/reference-react.md
Co-Authored-By: gaearon <dan.abramov@gmail.com >
* Simplify
2018-11-29 23:46:00 +00:00
Sebastian Markbåge
1601307c1e
Document React.memo ( #1282 )
...
* Document React.memo
* Use named functions in memo
Uses default exports
* Nits
* Tweak to "areEqual" to match the note below
2018-10-23 16:45:34 -07:00
Brian Vaughn
9cd3667141
Corrected misleading wording about React.Children.map
2018-09-19 09:48:57 -07: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
Alex Krolick
861544b16c
Move createRef above forwardRef
2018-04-03 10:16:19 -07: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
Brian Vaughn
201fcadfa7
Added React.forwardRef to API and docs
2018-03-16 09:30:07 -07:00
William Shepherd
8a7e75206b
Fix grammar ( #550 )
2018-01-24 09:36:58 -08:00
Szymon Nowicki
b646c386b8
Rolled back empty line removal.
2017-12-16 12:26:57 +01:00
Szymon Nowicki
74d974449c
Update React.PureComponent reference.
...
Rewording the `React.PureComponent` reference to make it more clear, that `React.Component` doesn't implement `.shouldComponentUpdate` at all.
2017-12-16 12:25:31 +01:00
Szymon Nowicki
04f46c4c5d
Update reference-react.md
...
Rolled back trailing whitespace.
2017-12-15 17:31:42 +01:00
Szymon Nowicki
ee1f416790
Update React.PureComponent reference.
...
Maybe I'm somehow weird, but I lived for some time with an idea that `React.Component` does implement `shouldComponentUpdate` with deep comparison. `React.PureComponent` is faster because it compares shallowly.
The changes I propose should avoid this "implicit" kind of way of thinking, since it would explicitly state that `React.Component` does not compare anything.
2017-12-15 17:29:55 +01:00
Clement Hoang
c90276f151
Update top level API for fragments
2017-12-01 17:59:19 -08:00
Iurii Kucherov
da283ec8ff
Update reference-react.md ( #276 )
...
Hi guys,
I was reading docs on `React.Children.only()` method and saw this statement `Otherwise this method throws.` and it seemed a bit unclear for me what it supposed to throw.
Please let me know if this PR makes sense.
Thank you!
2017-11-12 18:51:34 +00:00
Brian Vaughn
7267a399a0
Merge pull request #153 from mrscobbler/adding-glossary
...
Porting over glossary content from old repository
2017-10-17 11:53:42 -07:00
Fatos Morina
d70e89e2fb
Use colon
2017-10-14 19:15:11 +02:00
Fatos Morina
ddd8cca1cb
Add missing comma
2017-10-14 19:06:19 +02:00
Sophia Shoemaker
37feb36a06
adding glossary content
2017-10-12 16:02:08 -07:00
renatoselenica
ea6d90ef32
Changed the documentation for React.Children.only to make its implementation simpler to understand.
...
Fixes #87
2017-10-10 21:08:58 +02:00
Brian Vaughn
93aa551f1a
Reorganized 'docs' folder
2017-10-04 14:48:45 -07:00