Lukasz Ostrowski
6a1d86c712
Links to React Redux hooks api ( #2202 )
...
* Links to React Redux hooks api
Since Hooks are already released for Redux, link the docs
* Update hooks-faq.md
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com >
2019-08-12 10:08:30 +03:00
Eric Stout
975b4d2adb
Fix typo ( #2183 )
2019-08-12 10:04:47 +03:00
Dan Abramov
7382e4e4ec
Link FAQ to testing recipes
2019-08-10 17:02:40 +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
Peng Jie
5dca78b7e3
docs(hooks): fix typo ( #2161 )
2019-07-21 22:12:27 -07:00
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 >
2019-07-09 18:33:15 +03:00
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
2019-07-01 08:46:54 -07:00
Riley Avron
cb5a61cdbf
Add missing function call to example ( #2102 )
...
An example for useEffect omitted the actual invocation of the function in question.
2019-06-25 17:15:19 -07:00
Angelos Orfanakos
2dccf4699d
Remove redundant "reading" word from hooks faq ( #2036 )
2019-05-25 10:44:12 -07:00
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 >
2019-05-22 13:34:04 +03:00
Misha Moroshko
b3d4fe5efb
Keep hook links consistent ( #1323 )
2019-05-18 14:22:00 +03:00
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.
2019-05-09 10:35:27 -07:00
Dan Abramov
ad6687e25e
Simplify the observer example
2019-05-06 03:05:28 +01:00
Alexey Pyltsyn
066479b69a
Generate ids for new headers
2019-04-27 22:13:12 +03: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
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 >
2019-03-19 15:28:18 +00:00
Dan Abramov
352c3ff01f
Fix example
2019-03-13 18:24:10 +00:00
Dan Abramov
877b189758
Fix wording
2019-03-13 15:46:05 +00:00
Dan Abramov
474de38b2c
Use another example
2019-03-13 15:42:01 +00:00
Dan Abramov
110a318d1e
Link to a data fetching demo
2019-03-13 15:38:51 +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
Dan Abramov
f99cc73499
Revert "Small typo fix" ( #1738 )
...
* Revert "Small typo fix"
* Update hooks-faq.md
2019-02-23 11:29:51 +00:00
Alexey Pyltsyn
d615c5b7bc
Merge pull request #1317 from tusharkhatiwada/typo-hooks-faq
...
Small typo fix
2019-02-23 00:32:58 +03:00
David Svetlecic
7b5f4cf604
Add 'you'
2019-02-20 16:38:42 -06:00
Saransh Kataria
c8184872f8
Merge pull request #1324 from moroshko/patch-6
...
Tip => Note
2019-02-19 19:09:55 -08:00
Nat Alison
cde52ae60d
add missing headings on hooks-faq
2019-02-12 14:47:38 -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
Brian Vaughn
a0db3e7f17
Replaced inaccurate comments
2019-02-05 18:39:25 +00:00
Dan Abramov
601c016f49
testing
2019-02-05 18:05:36 +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
Dan Abramov
26b0eb258a
typo
2019-01-17 17:31:10 +00: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
1a49812370
Clarify conflicting advice
2019-01-17 13:25:41 +00:00
Dan Abramov
d7d5533278
[Hooks] Add recommendations about useMemo and lazy init ( #1565 )
2019-01-16 23:41:45 +00:00
Sunil Pai
53222c7f86
rename useImperativeMethods -> useImperativeHandle
2019-01-10 13:09:16 +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
Cory House
0e3d2a690c
Grammar fix ( #1435 )
2018-11-28 19:47:22 +00:00
Dan Abramov
d034688387
Add a disclaimer
2018-11-02 17:30:28 +00:00
Dan Abramov
145debb391
useMutationEffect for updating a ref to latest value ( #1363 )
2018-11-02 17:14:04 +00:00
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.
2018-10-26 16:18:29 -07:00
Misha Moroshko
a1c7038255
Remove highlighted line in code example ( #1322 )
2018-10-26 15:39:29 -07:00
Tushar Khatiwada
a531a0f89d
Small typo fix
2018-10-26 15:31:58 +05:45