danield770
8251eabd38
lifecycle -> lifecycle method (#3650 )
2021-04-22 11:19:27 +02:00
Yuqing Chen
b2363564ab
fix: typo ( #3388 )
2020-11-18 20:45:16 +01:00
Federico Zivolo
eafba20b3d
docs: document prod vs dev behavior difference in componentDidCatch ( #2168 )
2020-11-14 13:26:15 +01:00
Wojciech Maj
79bdfa0504
Change links to React lifecycle methods diagram to use HTTPS ( #2973 )
2020-09-29 10:30:47 +03:00
李鸿章
b24cabac64
Code the null and undefined values ( #3203 )
2020-09-08 13:48:07 +02:00
corinty
bc060f5edd
Moved a bracket in the setState function example ( #2164 )
2020-03-09 13:52:38 +00:00
Nat Alison
25df15b83e
reapply, correctly generating links
2019-02-06 18:03:29 -08:00
Nat Alison
dc1e5366e3
revert id adding
2019-02-06 18:00:52 -08:00
Nat Alison
3e49e971d0
add everything else again
2019-02-06 17:22:04 -08:00
Brian Vaughn
9e8bfd6de6
Moved UNSAFE_ renaming notes higher up to be more easily noticed
2018-12-06 13:01:39 -08:00
Brian Vaughn
cfc6d90d28
Changed wording about UNSAFE_componentWillReceiveProps deprecation
2018-12-06 09:40:35 -08:00
Dillon Mulroy
c30ab0e369
Fix anchor link for getDerivedStateFromError ( #1362 )
...
The anchor for `getDerivedStateFromError` was previously `#getderivedstatefromerror` when it should be `#static-getderivedstatefromerror`
2018-11-02 16:09:45 +00:00
Brian Vaughn
43339e2611
Add docs for getDerivedStateFromError [16.6] ( #1223 )
...
* Updated error boundary docs to reference new getDerivedStateFromError
* Updated some wording in response to PR feedback
* These
2018-10-23 16:55:17 -07:00
Dan Abramov
425cb9a429
Terminology: Lifecycle hooks -> Lifecycle methods ( #1237 )
2018-10-08 19:29:31 +01:00
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