Commit Graph

127 Commits

Author SHA1 Message Date
Brian Vaughn
e143823d7a Added create-subscription example 2018-03-24 16:26:04 -07:00
Brian Vaughn
bd06bbc1a7 Added context HOC example to reference 2018-03-24 09:30:27 -07:00
Brian Vaughn
f11a149412 Added DevTools naming consideration to React.forwardRef reference doc example 2018-03-24 08:58:20 -07:00
Brian Vaughn
587ad93751 Merge pull request #5 from alexkrolick/16.3-release-blog-post
Context updates
2018-03-23 14:09:36 -07:00
Alex Krolick
8437e3767b Fix syntax 2018-03-23 13:55:35 -07:00
Alex Krolick
b0e860404b Prettier 2018-03-23 13:54:55 -07:00
Alex Krolick
349446d8a7 Add caveats section 2018-03-23 13:51:07 -07:00
Alex Krolick
920b4f4741 Replace divs with some fake components 2018-03-23 13:20:54 -07:00
Brian Vaughn
7ac0712ed8 Updated 16.3 blog post to account for getSnapshotBeforeUpdate lifecycle 2018-03-23 12:42:57 -07:00
Alex Krolick
69198013e1 Use functional component 2018-03-23 11:46:47 -07:00
Alex Krolick
fb8e9e8a1b kill class props 2018-03-23 11:43:41 -07:00
Alex Krolick
f9225e2562 Remove propTypes 2018-03-23 11:41:07 -07:00
Alex Krolick
3c44882d68 Use function keyword 2018-03-23 11:39:12 -07:00
Brian Vaughn
b3bf0bd520 Added getSnapshotBeforeUpdate recipe 2018-03-23 11:23:07 -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
5864093674 Updated context-in-lifecycles example 2018-03-23 09:08:19 -07:00
Brian Vaughn
01c26919b4 Replaced cWRP in forwardRef example with cDU 2018-03-23 07:48:28 -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
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
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
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
Brian Vaughn
f14f1477d5 Renamed ref in example 2018-03-18 08:03:28 -07:00
Brian Vaughn
22d0ec128e Updated forwardRef example to use named function 2018-03-16 09:42:47 -07:00
Brian Vaughn
201fcadfa7 Added React.forwardRef to API and docs 2018-03-16 09:30:07 -07:00
Brian Vaughn
a357b64503 Added React.forwardRef to 16.3 release blog post 2018-03-15 09:42:49 -07:00
Brian Vaughn
55650fc12c Added explicit null value in state initializer 2018-03-15 08:48:01 -07:00
Brian Vaughn
866ef01ae6 Prettier 2018-03-07 11:44:18 -08:00
Brian Vaughn
3c75def7e7 Deleted StrictMode and examples/images 2018-03-07 11:42:10 -08:00
Brian Vaughn
c7a61e6aba Imported StrictMode docs (and examples) from PR #596 2018-03-07 11:33:19 -08:00
Alex Krolick
566406e717 Add docs for new Context API (R16.3) 2018-03-06 01:07:14 -08:00
Brian Vaughn
2312173e66 Moved updating-subscription example into an external Gist with a note 2018-02-28 09:10:34 -08:00
Brian Vaughn
442591cec9 Added example of updating subscription from props
The nuance of this particular example came up while updating react-relay
2018-02-22 13:19:39 -08:00
Brian Vaughn
98d5a092af Added gDSFP to example 2018-02-20 17:09:43 -08:00
Brian Vaughn
858c1a7511 Fixed small error in example 2018-02-20 17:05:29 -08:00
Brian Vaughn
8de7dc42ba Updated recipes to show updating/removing subscriptions 2018-02-16 14:47:16 -08:00
Brian Vaughn
813be17f1e Updated docs/recipes in response to a new GH question
This question showed there was a use-case that I wasn't covering fully enough before, so I've added a new section.
2018-02-14 14:34:14 -08:00
Brian Vaughn
540033808f Updated data-fetching example to show cWRP too 2018-02-13 13:48:27 -08:00
Brian Vaughn
c08533af9f Removed context-before example 2018-02-13 12:40:31 -08:00
Brian Vaughn
8494428bcb Added example of before/after context API 2018-02-13 11:44:39 -08:00
Brian Vaughn
f632f220c6 Wording changes for update-on-async and strict-mode
Incorporates most of Sophie's feedback.

Changes update-on-async references to 16.3 to be future tense (since this blog post will be released before 16.3). Changes strict-mode references to be past-tense (since this will be a docs page instead of a blog post).
2018-02-13 10:49:40 -08:00