Stephen Lau
61a8b62b03
Mention getSnapshotBeforeUpdate should return. ( #930 )
If getSnapshotBeforeUpdate does not return a snapshot value or null
it will cause a warning. Document that it should return this value.
7 years ago
Rodrigo Bermúdez Schettino
24f0448d7c
Update Ref API in docs ( #970 )
* Update Ref API in docs
Update to new React.createRef() API in guide "Uncontrolled Components".
* Update Ref API in doc example
Use new Ref API in guide's example.
* Fix syntax error in example
* Update highlighting ranges in docs
After updating to the new createRef API, the highlighting ranges in Uncontrolled Components were wrong.
* Update highlighting ranges in docs example
After updating to the new createRef API, the highlighting ranges in Uncontrolled Components were wrong.
* Update highlighting ranges in docs example
Remove empty line in source code.
* Update uncontrolled-components.md
* Update input-type-file.js
7 years ago
Sophie Alpert
5045e82b2a
Clarify class lifetime in class conversion example ( #912 )
* Clarify class lifetime in class conversion example
* Update state-and-lifecycle.md
7 years ago
Jonathan Berger
c47933a314
Correct typo in FAQ ( #985 )
Correcting a small typo.
7 years ago
lintonye
ecb0279553
Add learnreact.design course link and description ( #974 )
7 years ago
Dan Abramov
61f95acdf4
More links to derived state
7 years ago
Dan Abramov
e7023a4c9e
Link to newer blog post from the older one ( #981 )
* Link to newer blog post from the older one
* Update 2018-03-27-update-on-async-rendering.md
* Update 2018-03-27-update-on-async-rendering.md
7 years ago
Dan Abramov
de6a4cf384
Update older blog post to point to newer blog post ( #977 )
* Update older blog post to point to newer blog post
* Fix URL
7 years ago
Dan Abramov
38c1a9ad7a
React 16.4.1 ( #975 )
7 years ago
Jefferson Ribeiro
5afe18f0d2
Add shopping cart demo added to examples ( #924 )
* Shopping cart application
* Typo
* Replaced demo link for Github repository
* tweak wording to kick CI
* Description change to kick CI
7 years ago
Andy Edwards
af3b37ece3
docs(forwarding-refs.md): add warning to third-party library maintainers ( #968 )
* docs(forwarding-refs.md): add warning to third-party library maintainers
* Update forwarding-refs.md
* Update forwarding-refs.md
* Update forwarding-refs.md
* tweaks
7 years ago
balavishnu-vj
9350eb671f
Update 2018-06-07-you-probably-dont-need-derived-state.md ( #958 )
Typo: I think it should be props.list instead of props.items.
7 years ago
Kevin Ndung'u Gathuku
5b464a7ba0
Add missing Twitter link ( #966 )
7 years ago
Alex Krolick
ee650c8b30
Reorganize Hello World Page ( #962 )
* Reorganize Hello World Page
Move codeblock to the very top and and "following along" heading
* Match tense
* Remove subheading
7 years ago
Dan Abramov
81dc09ede1
Make the reference doc tighter
Now that there are some cross referenced links we can tighten it up.
7 years ago
Dan Abramov
17c50df9d9
Explicitly order Main Concepts ( #957 )
7 years ago
Dan Abramov
853f3d1945
Quick Start -> Main Concepts ( #956 )
7 years ago
Dan Abramov
d430480318
Reorder advanced guides by alphabet
I think this way it's clearer they're unordered, thus making it clearer Quick Start *is* ordered.
7 years ago
Dan Abramov
f5b284e101
Remove misleading paragraph
This was never true
7 years ago
Dan Abramov
c9e99c8ae6
Avoid unnecessary ternary
7 years ago
Dan Abramov
c70187cdbf
Cross-link more articles
7 years ago
Dan Abramov
a788a28708
Avoid ambiguity between elements and components
7 years ago
Alex Krolick
cec61969ea
Fix CI ( #952 )
* Checksum against lockfile
* Use Node 8 Docker image
7 years ago
Dan Abramov
3346d710b9
Clarify we are talking about sync calls
7 years ago
Dan Abramov
4550cb0e6a
Massage the section more and add details
7 years ago
Jenny Wong
941c1a4efc
NOtes and ideas for hello-world.md file.
- you can _just_ open it in
- It _renders_ a heading saying “Hello, world!” on the page. - you are using the same word as the thing you are describing.
- “A Note on JavaScript” the title doe snot suggest that you need to read it because you are learning about react ,not JS. Something like “React & JavaScript” or something like “Knowledge Level Assumptions”
- “we recommend **refreshing** your JavaScript knowledge so you can follow along more easily.” — refreshing suggest that someone. Already knows JS, so if they don’t know JS they will feel dejected. Try “We highly recommend [going through a Javascript tutorial]() to check your knowledge level.”
- “We also use some of the ES6 syntax” - **We** that suggests its a us vs the user. Instead go for “**The documentation** will use some [ES6 Syntax](LINK TO WHAT IS ES6)”
7 years ago
Dan Abramov
640ac1397b
No "just"
7 years ago
Dan Abramov
f285d002c5
Reduce visual noise in the list
It's obvious enough that this is the same method. I don't think repeating its name in the list brings any value, and it puts too much visual emphasis on something we're trying to deemphasize.
7 years ago
Dan Abramov
03c0046f7b
Try to fix iPhone horizontal scroll in Component reference
7 years ago
Dan Abramov
4f01e35b9d
Rewrite some component doc parts
7 years ago
Dan Abramov
6fe2302aed
Don’t make experienced users feel bad
7 years ago
Dan Abramov
7603eb964b
Mark common lifecycles as bold ( #948 )
7 years ago
Dan Abramov
79411aa85b
Reorder and rewrite some parts of lifecycle reference ( #947 )
* Reorder and rewrite some parts of lifecycle reference
* Link to the lifecycle diagram
* More recommendations
7 years ago
Dan Abramov
846ab6c383
Clarify it's not a recommended approach
7 years ago
Brian Vaughn
a5f0b2a251
Typo fix
7 years ago
Brian Vaughn
e51668cb51
Merge pull request #941 from bvaughn/typo-fix
Fix typo
7 years ago
Brian Vaughn
fc0c2bc154
Fix typo
7 years ago
Brian Vaughn
0cb3144880
Merge pull request #934 from bvaughn/when-to-use-derived-state
You Probably Don't Need Derived State
7 years ago
Brian Vaughn
125bd2b52e
Bullet point organization
7 years ago
Brian Vaughn
292f3bc4a0
Two small nits
7 years ago
Sophie Alpert
2925bc2d7e
Edit derived state post
7 years ago
Brian Vaughn
e18db03ccf
Added more Code Sandbox links for alternative patterns
7 years ago
Brian Vaughn
ddc134f894
Added more Code Sandbox demo links
7 years ago
Brian Vaughn
ca2d3bbaff
Clarified a point
7 years ago
Brian Vaughn
d9b4cf4d0b
Change section headers
7 years ago
Brian Vaughn
452203c3a1
Tweaked wording based on feedback
7 years ago
Brian Vaughn
07017de81a
Added emphasis suggested by Ryan
7 years ago
Brian Vaughn
1296f0c869
Wording nit
7 years ago
Brian Vaughn
64f9bff41d
Grammar nit
7 years ago
Brian Vaughn
22c1a4620e
Refactored blog post to include cWRP too
7 years ago