Dan Abramov
1a49812370
Clarify conflicting advice
6 years ago
Dan Abramov
d7d5533278
[Hooks] Add recommendations about useMemo and lazy init ( #1565 )
6 years ago
Brian Vaughn
efcbcc5a58
Wordsmithing
6 years ago
Brian Vaughn
4c29b69558
Add docs for useDebugValue
6 years ago
Alex Krolick
165ae047b4
Add note about Promise polyfill for React.lazy ( #1556 )
* Add note about Promise polyfill for React.lazy
Fixes #1552
* Backticks
6 years ago
Dan Abramov
60dd46d64b
Revert "Extended JavaScript environment requirements polyfills list with a promise ( #1553 )" ( #1554 )
This reverts commit cda991046a
.
6 years ago
Alex Chernenko
cda991046a
Extended JavaScript environment requirements polyfills list with a promise ( #1553 )
6 years ago
Dan Abramov
71aa4faa43
Remove unnecessary newline
6 years ago
Sunil Pai
1b8dd36ae1
createInstance -> createHandle
6 years ago
Sunil Pai
53222c7f86
rename useImperativeMethods -> useImperativeHandle
6 years ago
Aditya Agarwal
b5fa1df64f
Reset button should set the state back to `initialCount` ( #1327 )
6 years ago
Dan Abramov
92d96a3ca4
Bump documented Hooks version
6 years ago
0xflotus
3f7a7ddccf
fixed renderer
I fixed only a typo
6 years ago
Dan Abramov
6f2e26f21c
Rearrange TS section a bit
6 years ago
Dan Abramov
ac426af02c
Reword a confusing sentence
6 years ago
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
6 years ago
Vincent
97831ab0c3
Add link to docs on Firefox's A11y inspector ( #1525 )
6 years ago
Jamie
0c6a26ff9e
Hooks proposal has been accepted ( #1485 )
6 years ago
Brian Vaughn
9e8bfd6de6
Moved UNSAFE_ renaming notes higher up to be more easily noticed
6 years ago
Brian Vaughn
cfc6d90d28
Changed wording about UNSAFE_componentWillReceiveProps deprecation
6 years ago
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.
6 years ago
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
6 years ago
Ben Schwarz
963a9d5003
Updated article link to the canonical source ( #1444 )
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
rthurgood
13959877d3
Update context.md ( #1420 )
6 years ago
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.
6 years ago
Sophie Alpert
f203cd5d86
Clarify stance on classes
6 years ago
Sophie Alpert
cd6950a718
Add information about versioning policy ( #1403 )
6 years ago
Dan Abramov
b57384395d
Update how-to-contribute.md
6 years ago
Brian Vaughn
ceb2c60855
Updated useReducer reducer example to show default case
6 years ago
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
6 years ago
Dan Abramov
6b1fd7d984
Custom Hooks => Building Your Own Hooks ( #1364 )
6 years ago
Dan Abramov
d034688387
Add a disclaimer
6 years ago
Sophie Alpert
bd1d4832c0
Clarify when cleanup effect runs with [] deps
Fixes #1348 .
6 years ago
Dan Abramov
145debb391
useMutationEffect for updating a ref to latest value ( #1363 )
6 years ago
Dillon Mulroy
c30ab0e369
Fix anchor link for getDerivedStateFromError ( #1362 )
The anchor for `getDerivedStateFromError` was previously `#getderivedstatefromerror` when it should be `#static-getderivedstatefromerror`
6 years ago
Frederick Ros
ab79d82d95
Fix a typo ( #1344 )
Seems like the MyErrorBoundary import statement has a typo
6 years ago
Joe Haddad
f45e10b870
Use Create React App instead of unofficial fork ( #1347 )
Create React App supports TypeScript as of 2.1.
6 years ago
Dan Abramov
3c46595136
Add some spacing because it looks weird on website
6 years ago
Sophie Alpert
7e964ef8bf
Add Hooks video
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
v891
a8bf119e01
Update hooks-overview.md ( #1320 )
6 years ago
Misha Moroshko
a1c7038255
Remove highlighted line in code example ( #1322 )
6 years ago
Misha Moroshko
4fff01e641
Add : ( #1321 )
6 years ago
Kurt Furbush
7258e584cb
Update code-splitting.md ( #1299 )
Grammar fix
6 years ago
Philip Jackson
497de67653
Update hooks-reference.md ( #1315 )
Fix internal hyperlinks
6 years ago
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
6 years ago
Tushar Khatiwada
a531a0f89d
Small typo fix
6 years ago