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
b25276a80e
Updated forward-refs example to use class component
7 years ago
Brian Vaughn
f5d51393f5
Formatted a Note
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
6eb29a18f5
Combine basic examples
7 years ago
Alex Krolick
da091e6723
Add note about how changes are determined
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
Alex Krolick
6aa199516d
Add solution to motivation problem
7 years ago
Alex Krolick
291b2fdeb8
Wording 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
fe033f675d
Added StrictMode to docs sidenav
7 years ago
Brian Vaughn
201fcadfa7
Added React.forwardRef to API and docs
7 years ago
Brian Vaughn
a937c46e02
Typo fixes
7 years ago
Brian Vaughn
2f97f485ce
Fixed docs
7 years ago
Alex Krolick
e5bf5945b3
Unnest callback ref example code
https://github.com/facebook/react/pull/12375#issuecomment-373199666
7 years ago
Brian Vaughn
12d7c16cf2
Updated createRef 'value' attributes to 'current'
7 years ago
Brian Vaughn
c7a61e6aba
Imported StrictMode docs (and examples) from PR #596
7 years ago
Brian Vaughn
f6e5d655dd
Fixed off-by-one line highlights.
7 years ago
Adrià Fontcuberta
74077cbf7c
Fix redux FAQ link
Hi! Just wanted to thank you for your work.
Redux FAQ link was broken so I just fixed it.
7 years ago
Alex Krolick
566406e717
Add docs for new Context API (R16.3)
7 years ago
Alex Krolick
9b869fa73f
Update leading sentence
7 years ago
Alex Krolick
b1adba0a38
Recommend old API when applicable
7 years ago
Alex Krolick
04c7f16ef2
Wording
7 years ago
Alex Krolick
4b939d2448
~~All things considered~~
7 years ago
Alex Krolick
962ef9a567
Highlight deprecation notice
7 years ago
Alex Krolick
96b10a73ff
Grammar
7 years ago
Alex Krolick
96fe82c734
Declare setRef method outside render
7 years ago
Alex
8075ce2db7
Make the callback example more similar to the new API
7 years ago
stevefaulkner
fb32db116c
Update accessibility.md ( #660 )
The link to the explanation of landmarks, was not up to date, suggesting this http://www.scottohara.me/blog/2018/03/03/landmarks.html provides an up to date and detailed explanation.
7 years ago
Swarnava Sengupta
7dcf2f19be
Fix a small typo ( #662 )
7 years ago
Alex
7b02740afe
Create "Accessing refs" section above specific examples
7 years ago
Alex
0e7243f7fb
Merge intro paragraphs
7 years ago
Alex
6627687b0b
Describe what a ref is at the top of the doc
7 years ago
Dominic Gannaway
9bc1932688
updated line numbers
7 years ago