Michael McGahan
cf628304bb
Change name of setState updater first arg to 'state' ( #1155 )
2018-09-04 23:26:01 +01:00
Andre Wiggins
5775f070e2
Add signature to getSnapshotBeforeUpdate section ( #1032 )
...
Add the signature for `getSnapshotBeforeUpdate` to its section, just like all other lifecycle method sections have.
2018-07-03 18:17:29 +01:00
Stephen Lau
61a8b62b03
Mention getSnapshotBeforeUpdate should return. ( #930 )
...
If getSnapshotBeforeUpdate does not return a snapshot value or null
it will cause a warning. Document that it should return this value.
2018-06-22 12:08:54 +01:00
Dan Abramov
81dc09ede1
Make the reference doc tighter
...
Now that there are some cross referenced links we can tighten it up.
2018-06-11 03:24:41 +01:00
Dan Abramov
c70187cdbf
Cross-link more articles
2018-06-11 02:01:34 +01:00
Dan Abramov
a788a28708
Avoid ambiguity between elements and components
2018-06-11 00:36:52 +01:00
Dan Abramov
3346d710b9
Clarify we are talking about sync calls
2018-06-10 23:03:13 +01:00
Dan Abramov
640ac1397b
No "just"
2018-06-10 21:58:13 +01:00
Dan Abramov
f285d002c5
Reduce visual noise in the list
...
It's obvious enough that this is the same method. I don't think repeating its name in the list brings any value, and it puts too much visual emphasis on something we're trying to deemphasize.
2018-06-10 21:51:09 +01:00
Dan Abramov
4f01e35b9d
Rewrite some component doc parts
2018-06-10 21:38:44 +01:00
Dan Abramov
6fe2302aed
Don’t make experienced users feel bad
2018-06-10 19:30:53 +01:00
Dan Abramov
7603eb964b
Mark common lifecycles as bold ( #948 )
2018-06-10 19:02:25 +01:00
Dan Abramov
79411aa85b
Reorder and rewrite some parts of lifecycle reference ( #947 )
...
* Reorder and rewrite some parts of lifecycle reference
* Link to the lifecycle diagram
* More recommendations
2018-06-10 18:26:32 +01:00
Sébastien Boulet
95112711bb
fix link to anchor #unsafe_componentwillupdate ( #920 )
2018-05-31 13:10:53 +01:00
Brian Vaughn
3e80980c18
Renamed params for gDSFP
2018-05-24 18:18:04 -07:00
Andrew Clark
983476e3f3
Update getDerivedStateFromProps docs
2018-05-23 15:31:27 -07:00
barnonahill
9b72ba6f05
Add a sentence to the end of componentWillUnmount() ( #894 )
...
Adds a sentence explaining not to use setState in componentWillUnmount, see https://github.com/facebook/react/issues/12111
2018-05-20 23:52:19 +01:00
Dan Abramov
e3cf355618
Tweak componentWillReceiveProps docs ( #856 )
...
* Tweak componentWillReceiveProps docs
* Update reference-react-component.md
2018-05-01 13:11:08 +01:00
Dan Abramov
cf7329d6bd
Tweak wording
2018-04-03 17:00:53 +01:00
chucksellick
dbe5b49bbf
Fix a very small typo ( #754 )
...
"potential" -> "potentially"
2018-04-02 18:23:30 +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
Shovon Hasan
62638c8b2d
Fix broken link in UNSFE_componentWillReceiveProps docs. ( #744 )
2018-03-30 15:53:44 +01:00
Brian Vaughn
7ac0712ed8
Updated 16.3 blog post to account for getSnapshotBeforeUpdate lifecycle
2018-03-23 12:42:57 -07:00
Brian Vaughn
29d6592630
Update React.Component reference to show deprecations and new lifecycles
2018-03-20 13:27:50 -07:00
G Akshay
c66011b32d
just before sounds better that 'immediately before' (#611 )
2018-02-11 19:53:39 +00:00
G Akshay
10c3a91538
Update reference-react-component.md ( #609 )
...
`just before` sounds better than `immediately before`.
2018-02-10 21:03:08 +00:00
Alex
4379eccbce
Merge pull request #581 from einomi/patch-1
...
Remove link
2018-02-04 22:41:30 -08:00
Henrique Sosa
72e8051fa3
Fix misspelling
2018-02-05 02:57:58 -02:00
Dan Abramov
9a953858d6
Add more references to setState batching ( #583 )
2018-02-04 22:39:30 +00:00
Andrey Nikonov
ecf038e520
Update reference-react-component.md
...
There is no #createclass anchor on /docs/react-api.html page anymore.
2018-02-04 10:41:31 +03:00
Ernesto García
9b20285d1d
Update fragments example to use JSX syntax ( #520 )
...
* Update fragments example to use JSX syntax
* Use more standard JSX notation for fragments
* Bring back arrays-based example
* Remove keys in fragment, not needed for static items
* Add note about fragments syntax existing since v16.2
2018-01-14 00:51:35 +00:00
Dan Abramov
d5af622629
Mention that we don't recommend inheritance in the component doc ( #487 )
2018-01-06 14:23:07 +00:00
Dan Abramov
74de9934be
Avoid "tick" jargon in componentDidMount docs ( #415 )
2017-12-13 23:53:32 +00:00
Thomas Levy
1303a3d38c
Fix setState example code
...
Seems to have been a mix of the two examples the section was covering.
2017-11-15 16:05:33 -08:00
Dimitar Nestorov
0560d6be8b
Switching to a more popular representation of optional arguments
2017-10-31 17:26:44 +02:00
Dan Abramov
24cf4575ed
Tweak Lifecycle Docs ( #199 )
...
* Tweak Lifecycle Docs
* Nits
2017-10-23 18:34:05 +03:00
Brian Vaughn
8348250019
Merge pull request #49 from carloscuesta/docs-scu-deep-equality-json-stringify
...
Document deepEquality checks & JSON.stringify in shouldComponentUpdate are a bad idea
2017-10-18 08:58:14 -07:00
Brian Vaughn
07b015b687
Wording nit
2017-10-18 08:57:59 -07:00
Brian Vaughn
b785e8f7a5
Changed "and" to "or"
2017-10-18 08:56:40 -07:00
thomasyimgit
98386b633a
add componentDidCatch document and link
2017-10-11 16:33:35 -04:00
hozefaj
43c1c00703
fix links to pure component within docs
2017-10-09 16:11:18 -07:00
Brian Vaughn
d5ebad1d2a
Wordsmithing nit
2017-10-08 13:32:35 -07:00
Andy Edwards
e97ad4f5d4
Caution (in docs) against dispatching redux actions or triggering component updates by any other means in componentWillUpdate
2017-10-08 15:28:18 -05:00
Carlos Cuesta
1442bf4944
Document deepEquality checks & JSON.stringify in scu are a bad idea
2017-10-07 10:54:21 +02:00
Brian Vaughn
93aa551f1a
Reorganized 'docs' folder
2017-10-04 14:48:45 -07:00