Commit Graph

622 Commits

Author SHA1 Message Date
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
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
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
Alex Wilmer
c66250a34a add missing semi-colon in conditional rendering codeblock (#1269) 2018-10-19 01:51:56 -04:00
Tyler McGinnis
e2ee6b9f34 Remove the word "simple" (#1257)
I'm going to be that guy...
2018-10-14 17:59:18 -07:00
Dan Abramov
425cb9a429 Terminology: Lifecycle hooks -> Lifecycle methods (#1237) 2018-10-08 19:29:31 +01:00
Bartosz Kaszubowski
5c3f61d312 Small changes to "classnames" tip (#1151)
Just two small changes on "Styling and CSS" page:
* tip regarding "classnames" has been placed in quote box to visually emphasize it
* link to "classnames" package now points to React related section on the page
2018-10-05 14:41:13 -07:00
kh0ma
fc83f24358 Chage JSON payload to prevent errors with parsing (#1229) 2018-10-05 14:28:26 -07:00
Dan
e89ad6306b Fix example 2018-10-04 22:46:34 +01:00
Dan Abramov
81afcfbd87 Functional -> function (#863) 2018-10-04 22:13:09 +01:00
Dan Abramov
0276f2cd75 Add a link to Formik (#1197) 2018-09-25 00:37:20 +01:00
Brian Vaughn
9cd3667141 Corrected misleading wording about React.Children.map 2018-09-19 09:48:57 -07:00
Brian Vaughn
cc5f9c8eb1 Added links to the Profiler deep-dive YouTube video 2018-09-17 14:21:30 -07:00
Patrick Aljord
779a9bca3f typo in accessibility (#1168) 2018-09-11 07:04:01 +02:00
Moti Zilberman
e5c3a9e4f0 Pointer events: Document tangentialPressure, twist (#1118)
Added to `SyntheticPointerEvent` in https://github.com/facebook/react/pull/13374
2018-09-08 14:32:58 +01:00
Jonathan
bc756a8102 Update to the semantic HTML section of the a11y page (#1156) 2018-09-06 07:56:08 +02:00
Michael McGahan
cf628304bb Change name of setState updater first arg to 'state' (#1155) 2018-09-04 23:26:01 +01:00
Dan Abramov
33a3739314 Link to Tania’s blog post 2018-08-22 17:22:58 +01:00
Alex Zherdev
a857998ae6 Link to legacy context docs in Design Principles (#1132) 2018-08-20 19:04:50 +01:00
Brian Vaughn
8e0fc589ab Added react-window to 'Virtualize Long Lists' section 2018-08-09 11:07:18 -07:00
Dan
1c7728241b Add "React for Designers" link 2018-08-04 01:16:54 +01:00
Sophie Alpert
21511bde38 Tweaks to "Before You Use Context" (#1091)
![screenshot of new section](https://user-images.githubusercontent.com/6820/43227544-d9d55496-9013-11e8-8fe3-b16ed96d0070.png)
2018-08-03 13:21:02 +01:00
st-sloth
53e0590805 [accessibility] Minor clarifications (#1100)
* [accessibility] Remove trailing whitespaces

* [accessibility] Minor clarifications

* [accessibility] Minor clarifications (review changes)

* Language
2018-08-03 07:27:44 +02:00
Vasyl Stokolosa
76ef485ef6 Typo "React.createRef()" :) (#1105) 2018-08-02 22:41:03 +01:00
Dan Dascalescu
74f8d1f01b Move rendering BoilingVerdict before the DOM is updated 2018-07-27 18:47:44 -07:00
Dan Dascalescu
562dbd2d22 Fix typo and add BoilingVerdict to input change steps 2018-07-26 23:33:53 -07:00
Dan Abramov
023fb45343 Tweaks 2018-07-25 03:13:43 +02:00
Dan Abramov
7016c4a21d Tweak 2018-07-25 02:31:36 +02:00
Dan Abramov
5028f0874d Add "Before You Use Context" (#1085) 2018-07-25 02:17:15 +02:00
Dmitry Minkovsky
7f1b367eb6 Refs and the DOM: clarify when ref callbacks are invoked (#1069) 2018-07-19 11:14:52 -07:00
Alex Krolick
48cbb02dd2 make all redirect_from's arrays (#1075)
make Gatsby happy again
2018-07-19 10:51:07 -07:00
Matthew Vargeson
c5b0584d03 Add accessibility guidelines link to portals doc (#846)
* Add accessibility guidelines link to portals doc

* Add more detail to portal accessibility note

* Clarify text using suggested content
2018-07-18 20:45:00 -07:00
almero.steyn
3d5965412e [A11Y-docs]: Add section on pointer events with outside click example 2018-07-15 11:53:45 +02:00
Richie
e52e6c6d5a Dynamically append path alias (aaa/bbb.html = aaa/bbb = aaa/bbb/) int… (#783)
* Dynamically append path alias (aaa/bbb.html = aaa/bbb = aaa/bbb/) into redirects during gatsby onCreateNode callback API to avoid 404

* Consider more cases:
(1) markdown without redirects
(2) duplicated permalink for /docs/pure-render-mixin.html, rename the unused one

* Test permalink with ending `.html` rather then containing them
2018-07-13 12:06:26 -07:00
Ivan de la Beldad Fernandez
b044ce5dbb docs: fix minor typo (#1038) 2018-07-06 00:59:31 +01:00
Ideveloper
2bd8ffa429 Fix Issue about addons.md's Wrong links (#1023)
* Edit addons.md's link to right link

* Update addons.md
2018-07-04 12:42:20 +01:00
Andre Wiggins
5775f070e2 Add signature to getSnapshotBeforeUpdate section (#1032)
Add the signature for `getSnapshotBeforeUpdate` to its section, just like all other lifecycle method sections have.
2018-07-03 18:17:29 +01:00
Eslam Gamal Khoga
cf4e7fcff4 Update accessibility.md
removed additional tag's close />
2018-07-02 11:01:51 +02:00
Dan Abramov
50d2a9bfc8 Emphasize a section 2018-06-29 18:13:36 +01:00
Dan Abramov
8695e5a128 Link to homepage more prominently from Getting Started 2018-06-29 17:16:27 +01:00
embs
49053f3705 Fix another typo typo (#1021)
Remove duplicated word.

Related to #1007
2018-06-28 18:30:04 +01:00
Dan Abramov
8f89578d2d Make recommendations clearer 2018-06-28 16:42:02 +01:00
Dan Abramov
fd2185b157 Add "Quickly Try JSX" 2018-06-28 15:28:32 +01:00
Dan
796257b34e Minor tweaks 2018-06-28 02:53:48 +01:00
Dan
eff5afaf3b Less feels 2018-06-28 02:37:56 +01:00