Commit Graph

3430 Commits

Author SHA1 Message Date
Brian Vaughn
7ac0712ed8 Updated 16.3 blog post to account for getSnapshotBeforeUpdate lifecycle 2018-03-23 12:42:57 -07:00
Brian Vaughn
c41bb29856 Added DevTools name consideration to forwardRef examples 2018-03-23 09:54:12 -07:00
Brian Vaughn
b25276a80e Updated forward-refs example to use class component 2018-03-23 09:23:04 -07:00
Brian Vaughn
ef23c49e84 Updated multi-context example to show more indirection 2018-03-23 09:15:25 -07:00
Brian Vaughn
d66d3a218e Updated TODO for later 2018-03-23 09:08:42 -07:00
Brian Vaughn
5864093674 Updated context-in-lifecycles example 2018-03-23 09:08:19 -07:00
Brian Vaughn
f5d51393f5 Formatted a Note 2018-03-23 09:08:05 -07:00
Brian Vaughn
01c26919b4 Replaced cWRP in forwardRef example with cDU 2018-03-23 07:48:28 -07:00
Brian Vaughn
3af89c9c1a Merge pull request #4 from alexkrolick/context-tweaks
Context tweaks
2018-03-23 07:44:55 -07:00
Alex Krolick
ccc1f26b60 Replace "deprecated" with "legacy" for now 2018-03-22 22:41:30 -07:00
Alex Krolick
f588bd61e1 Update "legacy" wording 2018-03-22 22:38:37 -07:00
Alex Krolick
4e1282edac Add to "when to use context" 2018-03-22 22:36:16 -07:00
Alex Krolick
9f5499789a Update highlights 2018-03-22 22:35:52 -07:00
Alex Krolick
6eb29a18f5 Combine basic examples 2018-03-22 22:22:36 -07:00
Alex Krolick
da091e6723 Add note about how changes are determined 2018-03-22 22:16:08 -07:00
Alex Krolick
7db107b2fc + "default value" comment 2018-03-22 21:38:34 -07:00
Alex Krolick
0d32f18b09 Kill highlight 2018-03-22 21:18:38 -07:00
Alex Krolick
7b5764fed5 Add ref forwarding, lifecycle examples 2018-03-22 21:15:40 -07:00
Alex Krolick
fec6d6c141 Add mutliple contexts example 2018-03-22 21:01:59 -07:00
Alex Krolick
53d604fd3a ~deprecated~ legacy 2018-03-22 20:58:50 -07:00
Alex Krolick
e9ae68f55b remove confusing {} 2018-03-22 20:58:22 -07:00
Brian Vaughn
2f9b77a980 16.4 -> 16.x 2018-03-22 08:10:25 -07:00
Brian Vaughn
dbce488bb7 Merge pull request #3 from alexkrolick/new-context-api
New context api
2018-03-21 21:23:02 -07:00
Alex Krolick
b49f99b7d1 Highlight whole createContext() call 2018-03-21 12:16:23 -07:00
Alex Krolick
7c6688c12c Highlight createContext() 2018-03-21 10:16:38 -07:00
Alex Krolick
6aa199516d Add solution to motivation problem 2018-03-21 10:04:11 -07:00
Alex Krolick
291b2fdeb8 Wording tweaks 2018-03-21 10:03:08 -07:00
Alex Krolick
de22379cae Syntax tweaks 2018-03-21 09:50:09 -07:00
Alex Krolick
808e5bddaf Rephrase and reorganize
- Move Motivation to top @bvaughn
- Copy in some Motivation text from the RFC for the intro para
- Update examples
  - Remove state from simple example
  - Remove "random color" example;
  just toggle a theme variable instead
- Update highlights
2018-03-21 01:28:01 -07:00
Alex Krolick
fe3d0a449d Typo 2018-03-20 18:29:38 -07:00
Alex Krolick
a5022da882 Add in-page TOC
Also reduce spacing between ul/li tags
2018-03-20 18:15:23 -07:00
Alex Krolick
0780f7252e Reorganize examples & legacy docs 2018-03-20 18:14:16 -07:00
Brian Vaughn
29d6592630 Update React.Component reference to show deprecations and new lifecycles 2018-03-20 13:27:50 -07:00
Dan Abramov
2ead10e6a3 Update nav 2018-03-19 19:50:04 +00:00
Brian Vaughn
5d5a5d2635 StrictMode title => Strict Mode 2018-03-19 07:32:04 -07:00
Brian Vaughn
f14f1477d5 Renamed ref in example 2018-03-18 08:03:28 -07:00
Brian Vaughn
fe033f675d Added StrictMode to docs sidenav 2018-03-16 16:24:22 -07:00
Brian Vaughn
22d0ec128e Updated forwardRef example to use named function 2018-03-16 09:42:47 -07:00
Brian Vaughn
2b1de01fb1 Rebuild Netlify 2018-03-16 09:33:19 -07:00
Brian Vaughn
201fcadfa7 Added React.forwardRef to API and docs 2018-03-16 09:30:07 -07:00
Brian Vaughn
a937c46e02 Typo fixes 2018-03-15 10:05:02 -07:00
Brian Vaughn
a357b64503 Added React.forwardRef to 16.3 release blog post 2018-03-15 09:42:49 -07:00
Brian Vaughn
2f97f485ce Fixed docs 2018-03-14 18:01:20 -07:00
Alex Krolick
e5bf5945b3 Unnest callback ref example code
https://github.com/facebook/react/pull/12375#issuecomment-373199666
2018-03-14 17:56:07 -07:00
Brian Vaughn
12d7c16cf2 Updated createRef 'value' attributes to 'current' 2018-03-14 09:07:35 -07:00
Brian Vaughn
866ef01ae6 Prettier 2018-03-07 11:44:18 -08:00
Brian Vaughn
fecb153c89 Merge pull request #1 from trueadm/create-ref
Merge createRef docs into 16.3 release blog
2018-03-07 11:37:46 -08:00
Brian Vaughn
c7a61e6aba Imported StrictMode docs (and examples) from PR #596 2018-03-07 11:33:19 -08:00
Brian Vaughn
1de2e33414 Fixed links 2018-03-07 11:25:26 -08:00
Brian Vaughn
6a1ba97bb9 Moved 16.3 release date arbitrarily forward 2018-03-07 11:20:02 -08:00