Christian Maughan Tegnér
b1d705ad60
Use correct component name in context doc example ( #740 )
* Use correct component name in context doc example
I'm assuming the intention was to reference the `FancyButton` component defined directly above, unless I'm misunderstanding how to read this example.
* Prettier
7 years ago
Brian Vaughn
3a36a402a5
Revert "Added inline child function caveat to Context docs"
This reverts commit 691cd4577c
.
7 years ago
Brian Vaughn
797a792b77
Revert "Prettier"
This reverts commit 032576cf7b
.
7 years ago
Brian Vaughn
032576cf7b
Prettier
7 years ago
Brian Vaughn
691cd4577c
Added inline child function caveat to Context docs
7 years ago
Brian Vaughn
bd06bbc1a7
Added context HOC example to reference
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
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
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
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
Alex Krolick
566406e717
Add docs for new Context API (R16.3)
7 years ago