Brian Vaughn
e143823d7a
Added create-subscription example
7 years ago
Brian Vaughn
bd06bbc1a7
Added context HOC example to reference
7 years ago
Brian Vaughn
f11a149412
Added DevTools naming consideration to React.forwardRef reference doc example
7 years ago
Alex Krolick
8437e3767b
Fix syntax
7 years ago
Alex Krolick
b0e860404b
Prettier
7 years ago
Alex Krolick
349446d8a7
Add caveats section
7 years ago
Alex Krolick
920b4f4741
Replace divs with some fake components
7 years ago
Brian Vaughn
7ac0712ed8
Updated 16.3 blog post to account for getSnapshotBeforeUpdate lifecycle
7 years ago
Alex Krolick
69198013e1
Use functional component
7 years ago
Alex Krolick
fb8e9e8a1b
kill class props
7 years ago
Alex Krolick
f9225e2562
Remove propTypes
7 years ago
Alex Krolick
3c44882d68
Use function keyword
7 years ago
Brian Vaughn
b3bf0bd520
Added getSnapshotBeforeUpdate recipe
7 years ago
Brian Vaughn
c41bb29856
Added DevTools name consideration to forwardRef examples
7 years ago
Brian Vaughn
b25276a80e
Updated forward-refs example to use class component
7 years ago
Brian Vaughn
ef23c49e84
Updated multi-context example to show more indirection
7 years ago
Brian Vaughn
5864093674
Updated context-in-lifecycles example
7 years ago
Brian Vaughn
01c26919b4
Replaced cWRP in forwardRef example with cDU
7 years ago
Alex Krolick
9f5499789a
Update highlights
7 years ago
Alex Krolick
6eb29a18f5
Combine basic examples
7 years ago
Alex Krolick
7db107b2fc
+ "default value" comment
7 years ago
Alex Krolick
0d32f18b09
Kill highlight
7 years ago
Alex Krolick
7b5764fed5
Add ref forwarding, lifecycle examples
7 years ago
Alex Krolick
fec6d6c141
Add mutliple contexts example
7 years ago
Alex Krolick
b49f99b7d1
Highlight whole createContext() call
7 years ago
Alex Krolick
7c6688c12c
Highlight createContext()
7 years ago
Alex Krolick
6aa199516d
Add solution to motivation problem
7 years ago
Alex Krolick
de22379cae
Syntax tweaks
7 years ago
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
7 years ago
Brian Vaughn
f14f1477d5
Renamed ref in example
7 years ago
Brian Vaughn
22d0ec128e
Updated forwardRef example to use named function
7 years ago
Brian Vaughn
201fcadfa7
Added React.forwardRef to API and docs
7 years ago
Brian Vaughn
a357b64503
Added React.forwardRef to 16.3 release blog post
7 years ago
Brian Vaughn
55650fc12c
Added explicit null value in state initializer
7 years ago
Brian Vaughn
866ef01ae6
Prettier
7 years ago
Brian Vaughn
3c75def7e7
Deleted StrictMode and examples/images
7 years ago
Brian Vaughn
c7a61e6aba
Imported StrictMode docs (and examples) from PR #596
7 years ago
Alex Krolick
566406e717
Add docs for new Context API (R16.3)
7 years ago
Brian Vaughn
2312173e66
Moved updating-subscription example into an external Gist with a note
7 years ago
Brian Vaughn
442591cec9
Added example of updating subscription from props
The nuance of this particular example came up while updating react-relay
7 years ago
Brian Vaughn
98d5a092af
Added gDSFP to example
7 years ago
Brian Vaughn
858c1a7511
Fixed small error in example
7 years ago
Brian Vaughn
8de7dc42ba
Updated recipes to show updating/removing subscriptions
7 years ago
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.
7 years ago
Brian Vaughn
540033808f
Updated data-fetching example to show cWRP too
7 years ago
Brian Vaughn
c08533af9f
Removed context-before example
7 years ago
Brian Vaughn
8494428bcb
Added example of before/after context API
7 years ago
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).
7 years ago
Brian Vaughn
c1e67bec90
Wordsmithing in response to PR feedback
7 years ago
Brian Vaughn
ab62e88e27
Formatted example
7 years ago