Commit Graph

4064 Commits

Author SHA1 Message Date
Brian Vaughn
ceb2c60855 Updated useReducer reducer example to show default case 2018-11-09 09:38:08 -08:00
Andrew Clark
333656c363 Update version to 16.6.1 2018-11-06 18:41:40 -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
Sam Chen
9e61a8c0f3 Fix broken link (#1361) 2018-11-02 13:52:11 +00:00
Andrew Clark
fed55ff3bc Merge pull request #1349 from acdlite/upgrade-to-alpha
Upgrade to latest alpha
2018-10-30 18:39:34 -07:00
Andrew Clark
aa84227cab Upgrade to latest alpha
I'm going to add some new pages soon and I want to dogfood the new
Concurrent + Suspense + Hooks features.
2018-10-30 18:36:18 -07: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
Niladri Dutta
1823921be0 Add PrimeReact to UI components list (#1240)
* Add PrimeReact to ui components list

* sort list alphabetically

* remove newline
2018-10-26 12:00:53 -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
Jacob Kelley
c131dea9d1 Update tools-ui-components.md (#1319)
* Reverting Passage addition to UI

* Adding Passage to the Routing tools doc
2018-10-26 09:03:16 -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
Jacob Kelley
81241d1b92 Update tools-ui-components.md (#1310) 2018-10-25 20:40:24 -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 Markbåge
45eb0d5c23 Merge pull request #1303 from sebmarkbage/updaterfcs
Update rfc links
2018-10-25 09:26:36 -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
Dorian Mullings
3bedee952d fixed minor typo in 16.6 blog post (#1290)
* fixed typo 16.6 blog post

* Update 2018-10-23-react-v-16-6.md
2018-10-23 21:34:45 -07:00
Jamie
8b5d710fa1 Fix syntax error in 16.6 blog post (#1288) 2018-10-23 19:26:26 -07:00
Dan Abramov
d88cd4ca48 Update 2018-10-23-react-v-16-6.md 2018-10-23 18:36:22 -07:00
Dan Abramov
4675ab0ed8 Add 16.6 to versions (#1287) 2018-10-23 17:17:04 -07:00
Dan Abramov
854b931866 Use 16.6.0 (#1286) 2018-10-23 17:05:04 -07:00
Sebastian Markbåge
c873141eca Add React v16.6.0 blog post (#1285)
* Add React v16.6.0 blog post

* Two hyphens so close is noisy

* Tweak links

* Let it breathe a little

* Update 2018-10-23-react-v-16-6.md

* Credit Alex
2018-10-23 16:56:09 -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
Sebastian Markbåge
b6b15d770f Document deprecation of findDOMNode (#1263)
We might want to open an RFC for fragment refs which could solve the one
remaining use case in a better way but at least let us get the deprecation
in.
2018-10-23 16:54:04 -07:00
Sebastian Markbåge
b188555b06 Document React.lazy (#1284)
* Document React.lazy

Suspense is documented here since it's the only built-in way so far to
use it. In the future it'll likely be documented on its own more like
Error boundaries.

This hoists React.lazy as the primary way to do code splitting. However,
before getting into it we keep the recommendation to use react-loadable
for server-side rendered apps since Suspense is not yet ready for the
server.

* Tweaks

* Tweaks

* nits
2018-10-23 16:51:54 -07:00
Sebastian Markbåge
896214b7d2 Document class contextType as the primary consuming mechanism (#1283)
* Document class contextType as the primary consuming mechanism

* Update context.md
2018-10-23 16:48:02 -07:00
Sebastian Markbåge
1601307c1e Document React.memo (#1282)
* Document React.memo

* Use named functions in memo

Uses default exports

* Nits

* Tweak to "areEqual" to match the note below
2018-10-23 16:45:34 -07:00
Sophie Alpert
c90d27a249 Smaller code font inside list items 2018-10-23 10:20:18 -07:00
Jack Cross
c9f5085dd1 Add ReactNYC to meetups (#1281) 2018-10-22 16:09:17 -04:00
Sophie Alpert
026edff33c Error boundaries docs shouldn't use class fields 2018-10-21 11:30:29 -07:00
Noel Yoo
ee8716166e Fix typo (#1274) 2018-10-20 16:12:28 -04:00
Vasil Raev
34118dc303 Add Kendo suite to the Fee Based Components list (#1128)
* Add Kendo suite to the Fee Based Components list

* Update tools-ui-components.md
2018-10-19 01:02:33 -07:00
Alex Wilmer
c66250a34a add missing semi-colon in conditional rendering codeblock (#1269) 2018-10-19 01:51:56 -04:00
Sophie Alpert
40394f97a8 Feature headings easier to read 2018-10-17 12:56:47 -07:00
Brian Vaughn
f0ad713742 Merge pull request #1267 from bvaughn/coc-and-readme-license
Add license to README and add standard FB COC
2018-10-16 03:19:13 -05:00