UmaR Aamer
06dd4cbe97
React Native added support for hooks in 0.59 ( #2121 )
* React Native added support for hooks in 0.59
React Native 0.59 and above already support React Hooks, this line is no longer necessary, causes confusion for some people that it is not working right now. We can also mention React Native version if needed.
* update with react native mention of hooks support
* Update content/docs/hooks-faq.md
suggested changes
Co-Authored-By: Alexey Pyltsyn <lex61rus@gmail.com>
6 years ago
Neil de Carteret
18f662ce41
Update hooks-faq.md ( #2113 )
* Update hooks-faq.md
I tripped up slightly while reading this example for using the callback form of a state setter inside an effect. I've added a few lines that might help a hook newbie grok the differences between the examples.
* Update hooks-faq.md
* Update hooks-faq.md
6 years ago
Riley Avron
cb5a61cdbf
Add missing function call to example ( #2102 )
An example for useEffect omitted the actual invocation of the function in question.
6 years ago
Angelos Orfanakos
2dccf4699d
Remove redundant "reading" word from hooks faq ( #2036 )
6 years ago
Gavin Elster
8d9b002130
Fix typo ( #2021 )
* Fix typo
Adds a missing word
* Update content/docs/hooks-faq.md
Co-Authored-By: Alexey Pyltsyn <lex61rus@gmail.com>
6 years ago
Misha Moroshko
b3d4fe5efb
Keep hook links consistent ( #1323 )
6 years ago
Kent C. Dodds
b91049c057
inputs array > dependencies array ( #1957 )
* inputs array > dependencies array
I think initially this was referred to as the "inputs array" in the docs, then it was changed to the "dependencies array" everywhere except it looks like a few were missed.
* inputs array > dependencies array
I think initially this was referred to as the "inputs array" in the docs, then it was changed to the "dependencies array" everywhere except it looks like a few were missed.
6 years ago
Dan Abramov
ad6687e25e
Simplify the observer example
6 years ago
Alexey Pyltsyn
066479b69a
Generate ids for new headers
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
Dan Abramov
806da34988
Add a DOM measurement recipe to Hooks FAQ ( #1843 )
* Add a DOM measurement recipe to Hooks FAQ
* 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>
6 years ago
Dan Abramov
352c3ff01f
Fix example
6 years ago
Dan Abramov
877b189758
Fix wording
6 years ago
Dan Abramov
474de38b2c
Use another example
6 years ago
Dan Abramov
110a318d1e
Link to a data fetching demo
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
f99cc73499
Revert "Small typo fix" ( #1738 )
* Revert "Small typo fix"
* Update hooks-faq.md
6 years ago
David Svetlecic
7b5f4cf604
Add 'you'
6 years ago
Nat Alison
cde52ae60d
add missing headings on hooks-faq
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
Brian Vaughn
a0db3e7f17
Replaced inaccurate comments
6 years ago
Dan Abramov
601c016f49
testing
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
Dan Abramov
26b0eb258a
typo
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
1a49812370
Clarify conflicting advice
6 years ago
Dan Abramov
d7d5533278
[Hooks] Add recommendations about useMemo and lazy init ( #1565 )
6 years ago
Sunil Pai
53222c7f86
rename useImperativeMethods -> useImperativeHandle
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
Cory House
0e3d2a690c
Grammar fix ( #1435 )
6 years ago
Dan Abramov
d034688387
Add a disclaimer
6 years ago
Dan Abramov
145debb391
useMutationEffect for updating a ref to latest value ( #1363 )
6 years ago
Héliton Nordt
7fd8a8dfd8
Fix typo in Hooks FAQ
6 years ago
Misha Moroshko
451a96c311
Tip => Note
"Tip" usually contains an action for you to perform.
"Note" is more appropriate here since it's just an FYI.
6 years ago
Misha Moroshko
a1c7038255
Remove highlighted line in code example ( #1322 )
6 years ago
Tushar Khatiwada
a531a0f89d
Small typo fix
6 years ago
Michael Fix
da720361ed
Update hooks-faq to use React.memo instead of React.pure ( #1305 )
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