Gasim Gasimzada
8e805d7995
Add missing avatarSize in "Before you use context" to text and code ( #1737 )
2019-02-27 14:40:09 -08:00
Nat Alison
25df15b83e
reapply, correctly generating links
2019-02-06 18:03:29 -08:00
Nat Alison
dc1e5366e3
revert id adding
2019-02-06 18:00:52 -08:00
Nat Alison
3e49e971d0
add everything else again
2019-02-06 17:22:04 -08:00
rthurgood
13959877d3
Update context.md ( #1420 )
2018-11-21 18:09:17 +00: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
Sophie Alpert
21511bde38
Tweaks to "Before You Use Context" ( #1091 )
...

2018-08-03 13:21:02 +01: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
Dan Burzo
1d5217a293
Clarify change propagation in Context API ( #896 )
2018-05-21 14:01:22 +01:00
Alex Krolick
c95de8b59a
Clarify defaultValue usage ( #868 )
...
Fixes #867
2018-05-07 23:48:13 -07:00
Michael Li
ed255e604b
Fix grammar
2018-04-22 00:37:19 -04:00
tjallingt
6521a654cb
Added updating nested context default value example ( #780 )
...
* added context default value example
* Implement suggested change
* noop function as default value to createContext
2018-04-09 11:12:02 -07:00
tjallingt
e4941f6440
Added example for updating nested context consumer ( #776 )
...
* Added an example showing how to update the context from inside a (deeply) nested component
* Wrap comments
* Wrap comments
* Tweak wording
* Prettier
* Prettier
* Typo: "funtion" -> "function"
2018-04-06 18:49:55 -07:00
Dan Abramov
1466232fbf
Tweak context
2018-04-06 16:19:11 +01:00
Alex Krolick
6c22a4345b
Clarify when Consumers get the default value ( #770 )
...
* Clarify when Consumers get the default value
* Change wording
2018-04-06 15:14:46 +01:00
Asher Michael
c1c9714041
Update context.md ( #751 )
...
Corrected a grammar error in one of the notes section.
2018-04-01 13:34:24 +01:00
Alex Krolick
e8646074ee
Absolute link
2018-03-29 18:23:11 -07:00
Brian Vaughn
3a36a402a5
Revert "Added inline child function caveat to Context docs"
...
This reverts commit 691cd4577c .
2018-03-29 09:24:43 -07:00
Brian Vaughn
691cd4577c
Added inline child function caveat to Context docs
2018-03-29 09:15:30 -07:00
Brian Vaughn
bd06bbc1a7
Added context HOC example to reference
2018-03-24 09:30:27 -07:00
Alex Krolick
349446d8a7
Add caveats section
2018-03-23 13:51:07 -07:00
Alex Krolick
c9d50e3aba
Remove lib link
2018-03-23 11:49:31 -07:00
Alex Krolick
9e4442a5ad
typo
2018-03-23 11:28:16 -07:00
Alex Krolick
fe84e096dc
Explain why you need forwardRef
2018-03-23 11:25:41 -07:00
Alex Krolick
509b126510
Explain context in lifecycle a bit more
2018-03-23 11:23:22 -07:00
Alex Krolick
e6898245d9
Add notes about composing multiple contexts
2018-03-23 11:13:25 -07:00
Alex Krolick
d58c892169
+ "same algo"
2018-03-23 11:07:53 -07:00
Alex Krolick
1ead0605c2
17 -> future version
2018-03-23 11:04:29 -07:00
Brian Vaughn
b25276a80e
Updated forward-refs example to use class component
2018-03-23 09:23:04 -07:00
Brian Vaughn
f5d51393f5
Formatted a Note
2018-03-23 09:08:05 -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
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
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
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
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
Alex Krolick
566406e717
Add docs for new Context API (R16.3)
2018-03-06 01:07:14 -08:00
Alex
d59c4f9116
Add temporary link to context RFC slated for 16.3
...
Fixes #646
2018-02-26 11:10:09 -08:00
Sophie Alpert
8bbc69b453
Update context.md
...
Slightly less judgy with less of a hierarchical vibe.
2018-02-12 19:51:35 -08:00
Mark Pollmann
2739197161
Fix typo in Update.md
2017-10-22 22:46:38 +02:00