Brian Vaughn
bd06bbc1a7
Added context HOC example to reference
2018-03-24 09:30:27 -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
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
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
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
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
Alex Krolick
566406e717
Add docs for new Context API (R16.3)
2018-03-06 01:07:14 -08:00