Commit Graph

670 Commits

Author SHA1 Message Date
Sunil Pai
06b08a238d Merge remote-tracking branch 'upstream/master' 2019-01-15 16:06:12 +00:00
Dan Abramov
60dd46d64b Revert "Extended JavaScript environment requirements polyfills list with a promise (#1553)" (#1554)
This reverts commit cda991046a.
2019-01-15 11:44:47 +00:00
Alex Chernenko
cda991046a Extended JavaScript environment requirements polyfills list with a promise (#1553) 2019-01-14 14:51:19 -08:00
Dan Abramov
71aa4faa43 Remove unnecessary newline 2019-01-14 18:26:02 +00: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
0xflotus
3f7a7ddccf fixed renderer
I fixed only a typo
2019-01-06 23:34:07 +01:00
Dan Abramov
6f2e26f21c Rearrange TS section a bit 2019-01-03 15:41:57 +00:00
Dan Abramov
ac426af02c Reword a confusing sentence 2019-01-02 19:26:56 +00:00
Mikhail Vasin
dbcc9c249a Update version expected to include hooks (#1511)
* Update version expected to include hooks

16.7.0 does not include hooks, I suppose 16.8 could include them.

* Remove specific version
2019-01-02 19:22:29 +00:00
Vincent
97831ab0c3 Add link to docs on Firefox's A11y inspector (#1525) 2019-01-02 19:21:35 +00:00
Jamie
0c6a26ff9e Hooks proposal has been accepted (#1485) 2018-12-12 12:57:15 -08:00
Brian Vaughn
9e8bfd6de6 Moved UNSAFE_ renaming notes higher up to be more easily noticed 2018-12-06 13:01:39 -08:00
Brian Vaughn
cfc6d90d28 Changed wording about UNSAFE_componentWillReceiveProps deprecation 2018-12-06 09:40:35 -08:00
Max Wizard K
76dae99348 Referenced a Fiber architecture explanation (#1448)
Added a link to an article that provides an in-depth explanation of Fiber architecture.
2018-11-30 15:10:13 +00:00
Dan Abramov
0c96df0cd1 Add Suspense and lazy to API reference (#1446)
* Add Suspense and lazy to API reference

* Update content/docs/reference-react.md

Co-Authored-By: gaearon <dan.abramov@gmail.com>

* Simplify
2018-11-29 23:46:00 +00:00
Ben Schwarz
963a9d5003 Updated article link to the canonical source (#1444) 2018-11-29 02:06:18 +00: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
rthurgood
13959877d3 Update context.md (#1420) 2018-11-21 18:09:17 +00:00
David Edmondson
5284091bdd Replace unmaintained react-loadable package with loadable-components. (#1407)
* Replace react-loadable with two active alternatives.

`react-loadable` no longer has an active maintainer. Only personal forks are available for Webpack 4 + Babel 7 support.

* Remove react-universal-component.

Change recommendation to only `loadable-components` and link directly to the SSR documentation.
2018-11-19 18:31:02 +00:00
Sophie Alpert
f203cd5d86 Clarify stance on classes 2018-11-16 17:46:48 -08:00
Sophie Alpert
cd6950a718 Add information about versioning policy (#1403) 2018-11-16 17:07:48 -08:00
Dan Abramov
b57384395d Update how-to-contribute.md 2018-11-12 16:27:35 +00: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
Dan Abramov
6b1fd7d984 Custom Hooks => Building Your Own Hooks (#1364) 2018-11-02 17:32:01 +00:00
Dan Abramov
d034688387 Add a disclaimer 2018-11-02 17:30:28 +00:00
Sophie Alpert
bd1d4832c0 Clarify when cleanup effect runs with [] deps
Fixes #1348.
2018-11-02 10:29:42 -07:00
Dan Abramov
145debb391 useMutationEffect for updating a ref to latest value (#1363) 2018-11-02 17:14:04 +00:00
Dillon Mulroy
c30ab0e369 Fix anchor link for getDerivedStateFromError (#1362)
The anchor for `getDerivedStateFromError` was previously `#getderivedstatefromerror` when it should be `#static-getderivedstatefromerror`
2018-11-02 16:09:45 +00:00
Frederick Ros
ab79d82d95 Fix a typo (#1344)
Seems like the MyErrorBoundary import statement has a typo
2018-10-30 11:29:31 -07:00
Joe Haddad
f45e10b870 Use Create React App instead of unofficial fork (#1347)
Create React App supports TypeScript as of 2.1.
2018-10-30 11:18:47 -07:00
Dan Abramov
3c46595136 Add some spacing because it looks weird on website 2018-10-29 17:33:47 -07:00
Sophie Alpert
7e964ef8bf Add Hooks video 2018-10-29 15:42:28 -07:00
v891
a8bf119e01 Update hooks-overview.md (#1320) 2018-10-26 15:40:48 -07:00
Misha Moroshko
a1c7038255 Remove highlighted line in code example (#1322) 2018-10-26 15:39:29 -07:00
Misha Moroshko
4fff01e641 Add : (#1321) 2018-10-26 15:35:36 -07:00
Kurt Furbush
7258e584cb Update code-splitting.md (#1299)
Grammar fix
2018-10-26 09:12:44 -07:00
Philip Jackson
497de67653 Update hooks-reference.md (#1315)
Fix internal hyperlinks
2018-10-26 09:10:24 -07:00
Bæring Gunnar Steinþórsson
8d562573c7 Update hooks-intro.md (#1316)
Make link to Writing Custom Hooks lead to the top of the page rather than to how to Using a Custom Hook
2018-10-26 09:09:05 -07:00
Marko Schulz
60bddf78f9 Update links to https (#1313)
Only left the link to fable.io, because it currently has an invalid certificate, which they will only fix after moving to a new domain. https://github.com/fable-compiler/fable-compiler.github.io/issues/27
2018-10-25 23:35:26 -07:00
Misha Moroshko
017dd6523f or => and (#1311) 2018-10-25 22:26:12 -07:00
Stephen Burke
ce2729582c Update hooks-overview.md (#1308) 2018-10-25 21:55:51 -07:00
Michael Fix
da720361ed Update hooks-faq to use React.memo instead of React.pure (#1305) 2018-10-25 10:07:42 -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
Brian Vaughn
43339e2611 Add docs for getDerivedStateFromError [16.6] (#1223)
* Updated error boundary docs to reference new getDerivedStateFromError

* Updated some wording in response to PR feedback

* These
2018-10-23 16:55:17 -07:00