Aaron Mast
d2d2ee420d
Fix useReducer example ( #1992 )
6 years ago
Wojtek
59c3c0a155
Fix explanation of the `useState` example in 'Hooks API Reference' page ( #1881 )
6 years ago
Dan Abramov
b1bc193dba
Document useContext bailout strategy ( #1848 )
6 years ago
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
6 years ago
Dimitar Nestorov
40bbbd5b10
Updating useMemo docs ( #1796 )
https://codesandbox.io/s/4x68k8nrw
6 years ago
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
6 years ago
Dan Abramov
e3cf542e75
Fix line numbers
6 years ago
Dan Abramov
741dc3b5f1
Just throw
6 years ago
adeel.imran
4aa208e59d
updated grammer
6 years ago
Nat Alison
25df15b83e
reapply, correctly generating links
6 years ago
Nat Alison
dc1e5366e3
revert id adding
6 years ago
Nat Alison
3e49e971d0
add everything else again
6 years ago
Dan Abramov
d97cdcac7f
tweaks
6 years ago
Dan Abramov
d460a9b106
Docs updates
6 years ago
Dan Abramov
f510e11312
Reword intro
6 years ago
Dan Abramov
08b6e4b876
Update docs for stable Hooks
6 years ago
Dan Abramov
024b5b6173
Bump alpha
6 years ago
Dan Abramov
a946fb3783
Warn against side effects in useMemo ( #1576 )
6 years ago
Brian Vaughn
0ace70f43d
Added useDebugValue formatter function
6 years ago
Dan Abramov
9b5638f034
Tweak useMemo wording ( #1569 )
* Tweak useMemo wording
* Update hooks-faq.md
* Update hooks-reference.md
* Be more specific
6 years ago
Dan Abramov
d7d5533278
[Hooks] Add recommendations about useMemo and lazy init ( #1565 )
6 years ago
Brian Vaughn
efcbcc5a58
Wordsmithing
6 years ago
Brian Vaughn
4c29b69558
Add docs for useDebugValue
6 years ago
Sunil Pai
1b8dd36ae1
createInstance -> createHandle
6 years ago
Sunil Pai
53222c7f86
rename useImperativeMethods -> useImperativeHandle
6 years ago
Aditya Agarwal
b5fa1df64f
Reset button should set the state back to `initialCount` ( #1327 )
6 years ago
Dan Abramov
92d96a3ca4
Bump documented Hooks version
6 years ago
Jamie
0c6a26ff9e
Hooks proposal has been accepted ( #1485 )
6 years ago
Sophie Alpert
59a80a6010
Remove useMutationEffect docs ( #1440 )
https://github.com/facebook/react/pull/14336
6 years ago
Brian Vaughn
ceb2c60855
Updated useReducer reducer example to show default case
6 years ago
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
6 years ago
Sophie Alpert
bd1d4832c0
Clarify when cleanup effect runs with [] deps
Fixes #1348 .
6 years ago
Misha Moroshko
4fff01e641
Add : ( #1321 )
6 years ago
Philip Jackson
497de67653
Update hooks-reference.md ( #1315 )
Fix internal hyperlinks
6 years ago
Sebastian Markbage
83c2086e29
Update rfc links
6 years ago
Sophie Alpert
d0d1fed2d0
Add documentation for Hooks proposal
Co-Authored-By: Dan Abramov <dan.abramov@gmail.com>
Co-Authored-By: Sophie Alpert <git@sophiebits.com>
6 years ago