Theviyanthan Krishnamohan
efbe84e52d
Fix a typo ( #4870 )
2022-08-04 11:01:06 +05:30
dan
d14cbdca24
Add more details on batching ( #4559 )
...
* Add more details on batching
* Use a generic example
2022-04-07 15:39:12 +01:00
dan
65b04292eb
Document useId is not for keys ( #4557 )
2022-04-06 21:49:13 +01:00
Sukka
69ca55b931
Fix usage of useDeferredValue ( #4520 )
2022-03-30 03:07:59 +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
m019m1
5119600cf6
Include where setState is comming from ( #3652 )
...
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com >
2021-04-22 11:53:02 +02:00
Vincent
b4e7437ceb
Link to relevant forwardRef docs ( #2229 )
2020-03-09 13:48:48 +00:00
Aviv Hadar
602bfb5eda
Update hooks-reference.md ( #2691 )
...
Clarifying a useState sentence
2020-03-09 12:08:46 +00:00
Rasmus Nilsson
3f64033e6e
Fix grammar ( #2676 )
2020-01-14 14:29:56 -08:00
Sophie Alpert
1e4023ed7d
Add note about skipped updates with noop setState
...
Fixes #2599 .
2020-01-01 08:40:36 -08:00
jarstelfox
f90d199a61
Memo: Document behavior with useContext ( #2332 )
...
* Memo: Document behavior with useContext
It is not obvious that useContext and Memo work well together. Namely, if a child component listens to a context and updates out from under them memo'd function, does the memo'd component have the right state if re-rendered?
yes, actually. but this is undocumented. Now it's not!
* fix typo tigger -> trigger
* Add more detail to all relevant pages
Co-authored-by: Alex Krolick <alexkrolick@users.noreply.github.com >
Co-authored-by: Sophie Alpert <git@sophiebits.com >
2019-12-31 13:51:08 -08:00
Gregor Adams
32a5db034b
docs: Unify identifiers in "useImperativeHandle" example ( #2590 )
...
The example was using `inputRef` while the description used `fancyInputRef`. This was irritating.
2019-11-26 23:44:34 +03:00
Jimmy Cleveland
454f44e7c0
Add usage example for useContext. ( #2414 )
...
* Add usage example for useContext.
The intent is to show where the hook fits in to the usual Context usage.
* Remove unnecessary comment in code block.
2019-10-09 21:25:15 -07:00
David Cho-Lerat
5c371e5e3f
Update hooks-reference.md ( #2364 )
...
typo: "effects run [..], but you can [..] fire it" => "effects run [..], but you can [..] fire them"
2019-10-06 10:43:11 -07:00
Cheng Lou
453a3bd4f2
Swap order of increment and decrement in Counter examples ( #2382 )
...
I think UI-wise, decrement comes first.
2019-10-01 23:27:06 -07:00
Rootul Patel
fb8fdb8f6a
Improve grammar ( #2331 )
...
Remove extraneous "as"
2019-09-09 17:31:10 -07:00
Jesse Jackson
1705c25143
Improve grammar ( #2106 )
2019-06-30 10:31:25 +03:00
Aaron Mast
d2d2ee420d
Fix useReducer example ( #1992 )
2019-05-14 10:10:25 +03:00
Wojtek
59c3c0a155
Fix explanation of the useState example in 'Hooks API Reference' page ( #1881 )
2019-03-29 12:05:00 -07:00
Dan Abramov
b1bc193dba
Document useContext bailout strategy ( #1848 )
2019-03-19 22:09:21 +00:00
Dan Abramov
ac4aa6546e
Add more explanations to Hooks API page ( #1845 )
...
* Add more explanations to API page
* static
* add info about useLayoutEffect
* Update content/docs/hooks-reference.md
Co-Authored-By: gaearon <dan.abramov@gmail.com >
* nits
* nit
2019-03-19 17:12:44 +00:00
Dimitar Nestorov
40bbbd5b10
Updating useMemo docs ( #1796 )
...
https://codesandbox.io/s/4x68k8nrw
2019-03-14 14:49:11 +00:00
Dan Abramov
2cd4d0cf5d
Add more info to FAQ about deps ( #1815 )
...
* Add more info to FAQ about deps
* Update content/docs/hooks-faq.md
Co-Authored-By: gaearon <dan.abramov@gmail.com >
* Update content/docs/hooks-faq.md
Co-Authored-By: gaearon <dan.abramov@gmail.com >
* Update content/docs/hooks-faq.md
Co-Authored-By: gaearon <dan.abramov@gmail.com >
* Update content/docs/hooks-faq.md
Co-Authored-By: gaearon <dan.abramov@gmail.com >
* Update content/docs/hooks-effect.md
Co-Authored-By: gaearon <dan.abramov@gmail.com >
* tweaks
* tweak
2019-03-13 13:59:42 +00:00
Saransh Kataria
99e97c33ae
Merge pull request #1642 from adeelibr/grammer/correction-hooks-reference
...
Corrected grammar in hooks API reference
2019-02-15 06:47:20 -08:00
Dan Abramov
e3cf542e75
Fix line numbers
2019-02-08 20:37:28 +00:00
Dan Abramov
741dc3b5f1
Just throw
2019-02-08 20:16:30 +00:00
adeel.imran
4aa208e59d
updated grammer
2019-02-07 11:42:13 +05: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
Dan Abramov
d97cdcac7f
tweaks
2019-02-05 16:05:05 +00:00
Dan Abramov
d460a9b106
Docs updates
2019-02-04 15:34:23 +00:00
Dan Abramov
f510e11312
Reword intro
2019-01-25 18:08:48 +00:00
Dan Abramov
08b6e4b876
Update docs for stable Hooks
2019-01-24 18:07:22 +00:00
Dan Abramov
024b5b6173
Bump alpha
2019-01-20 20:31:35 +00:00
Dan Abramov
a946fb3783
Warn against side effects in useMemo ( #1576 )
2019-01-19 19:52:32 +00:00
Brian Vaughn
0ace70f43d
Added useDebugValue formatter function
2019-01-17 10:50:09 -08:00
Dan Abramov
9b5638f034
Tweak useMemo wording ( #1569 )
...
* Tweak useMemo wording
* Update hooks-faq.md
* Update hooks-reference.md
* Be more specific
2019-01-17 17:10:05 +00:00
Dan Abramov
d7d5533278
[Hooks] Add recommendations about useMemo and lazy init ( #1565 )
2019-01-16 23:41:45 +00:00
Brian Vaughn
924e76dc1b
Merge pull request #1544 from threepointone/master
...
rename useImperativeMethods -> useImperativeHandle
2019-01-15 15:32:11 -08:00
Brian Vaughn
efcbcc5a58
Wordsmithing
2019-01-15 13:50:53 -08:00
Brian Vaughn
4c29b69558
Add docs for useDebugValue
2019-01-15 13:04:49 -08:00
Sunil Pai
1b8dd36ae1
createInstance -> createHandle
2019-01-10 14:47:51 +00:00
Sunil Pai
53222c7f86
rename useImperativeMethods -> useImperativeHandle
2019-01-10 13:09:16 +00:00
Aditya Agarwal
b5fa1df64f
Reset button should set the state back to initialCount ( #1327 )
2019-01-10 11:46:33 +00:00
Dan Abramov
92d96a3ca4
Bump documented Hooks version
2019-01-09 21:03:48 +00:00
Jamie
0c6a26ff9e
Hooks proposal has been accepted ( #1485 )
2018-12-12 12:57:15 -08:00
Sophie Alpert
59a80a6010
Remove useMutationEffect docs ( #1440 )
...
https://github.com/facebook/react/pull/14336
2018-11-28 13:42:27 -08:00
Brian Vaughn
ceb2c60855
Updated useReducer reducer example to show default case
2018-11-09 09:38:08 -08:00
einarq
d7fc875f71
Typo in useReducer docs, the initialCount prop is unused ( #1376 )
...
* Typo in useReducer docs, the initialCount prop is unused, should be passed to the useReducer hook as initial state
* Fix example
2018-11-05 15:53:23 +00:00