Alex Krolick
920b4f4741
Replace divs with some fake components
7 years ago
Alex Krolick
c9d50e3aba
Remove lib link
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
Alex Krolick
9e4442a5ad
typo
7 years ago
Alex Krolick
fe84e096dc
Explain why you need forwardRef
7 years ago
Alex Krolick
509b126510
Explain context in lifecycle a bit more
7 years ago
Alex Krolick
e6898245d9
Add notes about composing multiple contexts
7 years ago
Alex Krolick
d58c892169
+ "same algo"
7 years ago
Alex Krolick
1ead0605c2
17 -> future version
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
d66d3a218e
Updated TODO for later
7 years ago
Brian Vaughn
5864093674
Updated context-in-lifecycles example
7 years ago
Brian Vaughn
f5d51393f5
Formatted a Note
7 years ago
Brian Vaughn
01c26919b4
Replaced cWRP in forwardRef example with cDU
7 years ago
Brian Vaughn
3af89c9c1a
Merge pull request #4 from alexkrolick/context-tweaks
Context tweaks
7 years ago
Alex Krolick
ccc1f26b60
Replace "deprecated" with "legacy" for now
7 years ago
Alex Krolick
f588bd61e1
Update "legacy" wording
7 years ago
Alex Krolick
4e1282edac
Add to "when to use context"
7 years ago
Alex Krolick
9f5499789a
Update highlights
7 years ago
Alex Krolick
6eb29a18f5
Combine basic examples
7 years ago
Alex Krolick
da091e6723
Add note about how changes are determined
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
53d604fd3a
~deprecated~ legacy
7 years ago
Alex Krolick
e9ae68f55b
remove confusing {}
7 years ago
Brian Vaughn
2f9b77a980
16.4 -> 16.x
7 years ago
Brian Vaughn
dbce488bb7
Merge pull request #3 from alexkrolick/new-context-api
New context api
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
291b2fdeb8
Wording tweaks
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
fe3d0a449d
Typo
7 years ago
Alex Krolick
a5022da882
Add in-page TOC
Also reduce spacing between ul/li tags
7 years ago
Alex Krolick
0780f7252e
Reorganize examples & legacy docs
7 years ago
Brian Vaughn
29d6592630
Update React.Component reference to show deprecations and new lifecycles
7 years ago
Dan Abramov
2ead10e6a3
Update nav
7 years ago
Brian Vaughn
5d5a5d2635
StrictMode title => Strict Mode
7 years ago
Brian Vaughn
f14f1477d5
Renamed ref in example
7 years ago
Brian Vaughn
fe033f675d
Added StrictMode to docs sidenav
7 years ago
Brian Vaughn
22d0ec128e
Updated forwardRef example to use named function
7 years ago
Brian Vaughn
2b1de01fb1
Rebuild Netlify
7 years ago