Commit Graph

24 Commits

Author SHA1 Message Date
JC (Jonathan Chen)
7e89958dc4 docs: fix grammar (#4949)
* docs: fix grammar

* Update strict-mode.md

Co-authored-by: dan <dan.abramov@gmail.com>
2022-09-05 04:09:51 +01:00
Sebastian Silbermann
3411c0d0c4 Explicitly list what methods are included in unmounting and remounting (#4618)
* Explicitly list what methods are included in unmounting and remounting

* Move up
2022-05-02 22:00:09 +02:00
dan
0982707a98 Update StrictMode docs about double logging (#4531) 2022-03-30 19:05:09 +01:00
Ricky
74246c13b9 React 18 (#4499)
* [18] ReactDOM reference to createRoot/hydrateRoot (#4340)

* [18] ReactDOM reference to createRoot/hydrateRoot

* Update note about render and hydrate

* Match the warning text

* s/Render/render

* [18] Update ReactDOMClient docs (#4468)

* [18] Update ReactDOMClient docs

* Remove ReactDOMClient where it's obvious

* Update browser message

* Update browser message note

* Update based on feedback

* Add react-dom/client docs

* [18] Upgrade homepage examples (#4469)

* [18] Switch code samples to createRoot (#4470)

* [18] Switch code samples to createRoot

* Feedback fixes

* Feedback updates

* [18] Use hydrateRoot and root.unmount. (#4473)

* [18] Add docs for flushSync (#4474)

* [18] Add flushSync to ReactDOM docs

* Seb feedback

* More Seb feedback

* [18] Bump version to 18 (#4478)

* [18] Update browser requirements (#4476)

* [18] Update browser requirements

* Update based on feedback

* [18] Add stubs for new API references (#4477)

* [18] Add stubs for new API references

* Change order/grouping

* [18] Redirect outdated Concurrent Mode docs (#4481)

* [18] Redirect outdated Concurrent Mode docs

* Use Vercel redirects instead

* [18] Update versions page (#4482)

* [18] Update version page

* Fix prettier

* [18] Update React.lazy docs (#4483)

* [18] Add docs for useSyncExternalStore (#4487)

* [18] Add docs for useSyncExternalStore

* rm "optional"

* [18] Add docs for useInsertionEffect (#4486)

* [18] Add docs for useId (#4488)

* [18] Add docs for useId

* Update based on feedback

* Add Strict Effects to Strict Mode (#4362)

* Add Strict Effects to Strict Mode

* Update with new thinking

* [18] Update docs for useEffect timing (#4498)

* [18] Add docs for useDeferredValue (#4497)

* [18] Update suspense docs for unexpected fallbacks (#4500)

* [18] Update suspense docs for unexpected fallbacks

* Add inline code block

* Feedback fixes

* [18] Updated Suspense doc with behavior during SSR and Hydration (#4484)

* update wording

* wording

* update events

* Update content/docs/reference-react.md

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>

* add link to selective hydration

* remove some of the implementation details

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>

* [18] renderToPipeableStream doc (#4485)

* new streaming ssr api

* add readable stream

* code snippets

* Rename strict effects / unsafe effects to use the reusable state terminology (#4505)

* Add draft of 18 release post

* Add links to speaker Twitter profiles

* [18] Update upgrade guide

* Fix typo in blog title

* [18] Blog - add note for react native

* [18] Add changelog info to blog posts

* Edit Suspense for data fetching section

* Update date

* [18] Add links

* Consistent title case

* Update link to merged RFC

* [18] Update APIs and links

* [18] Add start/useTransition docs (#4479)

* [18] Add start/useTransition docs

* Updates based on feedback

* [18] Generate heading IDs

* Add note about Strict Mode

* Just frameworks

* Reorder, fix content

* Typos

* Clarify Suspense frameworks section

* Revert lost changes that happened when I undo-ed in my editor

Co-authored-by: salazarm <salazarm@users.noreply.github.com>
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
Co-authored-by: Sebastian Markbåge <sebastian@calyptus.eu>
Co-authored-by: Andrew Clark <git@andrewclark.io>
Co-authored-by: dan <dan.abramov@gmail.com>
2022-03-29 12:03:23 -04:00
ilovepullrequests
c9efa5e266 Correct grammar (#3608)
Change 'was' to 'were'.
2021-04-05 11:29:48 +02:00
joan xie
e9da0fa160 Update strict-mode.md (#3426)
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
2020-12-04 01:52:19 +01:00
Dan Abramov
fae6d6b2eb Oops 2020-03-30 16:05:35 +01:00
Sebastian Silbermann
9e5a358cb2 Explain how StrictMode affects function components and hooks (#2515)
* Update strict-mode.md

* Fix links

* docs: specify which kind of function component

* Update content/docs/strict-mode.md

* Update strict-mode.md

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2020-03-30 15:01:54 +01:00
Sunil Pai
60d83be9be Add shouldComponentUpdate to list of methods double called in Strict Mode (#2810)
This landed in 16.13 via https://github.com/facebook/react/pull/17942
2020-03-04 12:34:58 +00:00
Patrick Smith
0741c81a14 "async" mode to "concurrent" mode (#2761)
Should hooks such as `useLayoutEffect`, `useEffect`, etc also be listed in the "Render phase lifecycles" section?
2020-02-20 09:17:03 -08:00
Dan Green
d7e9a52d7d Updated strict-mode docs to use UNSAFE_* lifecycle method names (#2683)
* Updated strict-mode docs to use UNSAFE_ method names

The strict mode docs still reference the old `componentWill*` lifecycle method names, this updates them to be `UNSAFE_componentWill*`

* Tweaked docs to mention both unsafe lifecycle names

Co-authored-by: Brian Vaughn <brian.david.vaughn@gmail.com>
2020-01-16 09:21:09 -08:00
Saransh Kataria
fb3327f109 Merge pull request #1574 from evolveris/patch-1
Fix typo
2019-02-20 07:32:22 -08: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
evolveris
dfaa41deab Fix typo 2019-01-19 11:43:17 +00:00
Sebastian Markbåge
b6b15d770f Document deprecation of findDOMNode (#1263)
We might want to open an RFC for fragment refs which could solve the one
remaining use case in a better way but at least let us get the deprecation
in.
2018-10-23 16:54:04 -07:00
cyan33
5ce098c1a1 refactor the wording 2018-05-18 14:56:07 -07:00
cyan33
1b5cf20dcc add #detecting legacy context apis for strict mode post 2018-05-17 14:40:47 -07:00
Brian Vaughn
aa9810f4fd Fixed some links and improved a recommendation 2018-03-29 12:59:26 -07:00
Brian Vaughn
ac1d767bd3 Fixed link 2018-03-29 12:51:14 -07:00
Brian Vaughn
5d5a5d2635 StrictMode title => Strict Mode 2018-03-19 07:32:04 -07:00
Brian Vaughn
a937c46e02 Typo fixes 2018-03-15 10:05:02 -07:00
Brian Vaughn
c7a61e6aba Imported StrictMode docs (and examples) from PR #596 2018-03-07 11:33:19 -08:00