Commit Graph

17 Commits

Author SHA1 Message Date
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
Asher Oloo
e60bca04f3 Fixed a minor typo in a comment (#3685) 2021-05-21 08:55:32 +02:00
Pradip
8aee286cc8 Testing Recipes - Timers: call useFakeTimers/userRealTimers before/after each test (#3591) 2021-03-23 09:59:26 +01:00
Dan Abramov
6682068641 Tweak event delegation notes 2020-10-23 22:59:13 +01:00
Toru Kobayashi
da8ef8b0f6 Explain where act comes from (#3237)
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
2020-09-02 09:31:52 +02:00
石发磊
f21896aee4 missing export default for contact.js (#3209) 2020-08-18 22:26:33 -04:00
项鸿伟
7c28a3e88a Update testing-recipes.md (#2509)
Missing code
2020-03-09 13:02:00 +00:00
numb86
1e4159d11d Fix sample test code (#2648) 2020-01-06 14:15:33 -10:00
shixiaomiaomiao
8af118139e Update testing-recipes.md (#2616) 2019-12-18 11:19:58 -08:00
Sergei Cherniaev
1f2b1dae94 Docs: a typo and bottom nav links (#2339)
* typo fixed

* bottom nav links on previous and next articles removed like in other advanced guides
2019-09-11 23:08:25 +03:00
Sergei Cherniaev
519a3aec91 missed link in fast navigation added (#2289) 2019-08-26 10:38:59 +01:00
Todd Chaffee
12a84023f1 Update testing-recipes.md with English correct. (#2224)
"Get a hold" should be the phrasal verb "get ahold". See https://www.quickanddirtytips.com/education/grammar/a-hold-or-ahold?page=1
2019-08-10 17:00:47 +01:00
Sunil Pai
53cce1dc2e Adds a TOC to testing-recipes.md (#2221)
Nothing, fancy, just a list of links to the sections on the page. Also took the opportunity to add dividers between sections, and Title Case the titles.
2019-08-09 19:21:31 +01:00
Sunil Pai
911f5d1a39 [easy] copyedit testing-recipes.md (#2220)
2 small changes 
- consistent data-testid everywhere 
- one wrong assertion
2019-08-09 16:42:47 +01:00
Arihant Verma
4559e1c20e Type fix 'Diffrent' ➡️ 'Different' (#2215)
Type fix 'Diffrent' ➡️ 'Different'
2019-08-09 10:58:44 +01:00
Neil Kistner
3f6d60a229 Update testing-recipes.md (#2212)
* Update testing-recipes.md

Update timers section code to match described situation

* Missed a spot
2019-08-09 10:57:45 +01:00
Sunil Pai
8be8bf9d2f Testing Docs (#2165)
* Testing Docs

This expands the testing docs for reactjs.org. It adds 3 main docs -

- testing.md: An entry point to the testing docs
- testing-recipes.md: Common patterns when writing tests for React Components.
- testing-environments.md: Setting up your testing environment.

With help from @alexkrolick, @kentcdodds, @gaearon
2019-08-08 22:43:59 +01:00