Commit Graph

30 Commits

Author SHA1 Message Date
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
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
Sophie Alpert
bd1d4832c0 Clarify when cleanup effect runs with [] deps
Fixes #1348.
2018-11-02 10:29:42 -07:00
Misha Moroshko
4fff01e641 Add : (#1321) 2018-10-26 15:35:36 -07:00
Philip Jackson
497de67653 Update hooks-reference.md (#1315)
Fix internal hyperlinks
2018-10-26 09:10:24 -07:00
Sebastian Markbage
83c2086e29 Update rfc links 2018-10-25 09:25:56 -07:00
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>
2018-10-25 07:09:38 -07:00