Ken Powers
49fa7d139d
Clarify stateless function component optimizations.
...
As discussed on Discord.
2016-01-19 16:46:00 -05:00
iamchenxin
209b7522d9
update zh-docs14.3 ,fixed confliction
2016-01-14 18:38:07 +08:00
Paul O’Shannessy
1da992a0ab
Merge pull request #5735 from cody/refs
...
[docs] Small fixes to "more about refs"
2016-01-12 13:02:27 -08:00
Stefan Dombrowski
ad4e31c312
[docs] Small fixes to "more about refs"
...
* Add a null check to "A Complete Example".
* Fix outdated comment. (Found by @mjomble)
* Replace short dash - with longer dash –.
* Remove backticks from state, because it is not code.
2016-01-12 19:07:35 +01:00
Paul O’Shannessy
9494ec80c2
Merge pull request #5732 from iamchenxin/en-docs
...
[docs] deleting some unecessary newline
2016-01-12 09:57:32 -08:00
Ben Alpert
dd93eb7f40
Merge pull request #5834 from spicyj/no-ie8
...
blog post: Discontinuing IE 8 Support in React DOM
2016-01-12 10:27:46 -07:00
Ben Alpert
ee03c19b3b
Remove references to IE 8 in docs
2016-01-11 23:32:29 -07:00
Paul O’Shannessy
f7850dd3d7
Merge pull request #5686 from vitorbal/master
...
Improve documentation for using React with Webpack
2016-01-11 12:25:26 -08:00
Paul O’Shannessy
3574e60867
[docs] Updated supported attrs
2016-01-08 17:17:59 -08:00
Zhangjd
a3ec1c34d6
Update thinking-in-react.zh-CN.md
2016-01-08 17:58:23 +08:00
Jim
a1584053cc
Merge pull request #5790 from jimfb/componentWillReceiveProps-blogPost
...
Blog post explains to verify prop mutations in componentWillReceiveProps
2016-01-07 16:21:03 -08:00
Paul O’Shannessy
c3cea365e7
[docs] Bigger jsfiddle embeds
2016-01-07 11:44:25 -08:00
jim
70938de9ae
Blog post explains to verify prop mutations in componentWillReceiveProps
2016-01-07 11:11:54 -08:00
Gavin McQuistin
d3e315193a
Fix typo in ref-08-reconciliation.md
2016-01-07 14:40:44 +00:00
Jim
a8c2c80fdc
Fix wording to make it more clear that checkbox (input) supports defaultChecked
...
Fix some confusion about why `input` would support `defaultChecked` (it's because you can have an input of type checkbox). This has come up a couple of times (https://github.com/facebook/react/pull/5633 , https://github.com/facebook/react/pull/5774 ) but both those PRs were wrong and it was just easier to fix it myself.
2016-01-04 13:19:22 -08:00
Yuichi Hagio
c035179ef8
Update 10.4-test-utils.md
...
Added `var renderer = ReactTestUtils.createRenderer();` (Line 235) to clarify where `renderer` (Line 236) comes from.
2016-01-01 23:15:37 -05:00
Dan Abramov
feb4c487be
Document changes in #5714
2015-12-25 18:51:09 +00:00
iamchenxin
6e0a023572
deleting some unecessary newline
2015-12-24 14:57:30 +08:00
iamchenxin
badc15e3c0
update zh-docs (v0.14.3+)
2015-12-24 13:57:07 +08:00
dortonway
109c9a91e2
Fix misunderstanding in tutorial
2015-12-23 03:01:02 +03:00
Paul O’Shannessy
1d8b816496
Merge pull request #5711 from iamchenxin/docs122215
...
[docs] Update zh-docs with 7e2a7f0
2015-12-22 14:10:41 -08:00
iamchenxin
a9a4c9d9d0
Update zh-docs with 7e2a7f0
2015-12-23 00:54:48 +08:00
Paul O’Shannessy
82ed8fb0cd
[docs] fixup other broken youtube-nocookie uses
2015-12-22 00:54:04 -08:00
Jim
7e2a7f0ce6
Merge pull request #5706 from kchia/patch-3
...
Capitalizes first letter of first word in the Step 1 instruction
2015-12-21 17:26:10 -08:00
Hou Chia
c465c2ab77
Corrects grammatical errors
2015-12-21 15:03:09 -08:00
Hou Chia
744b1175f3
Capitalizes first letter of first word in the Step 1 instruction
...
This proposed change makes the documentation formatting more consistent.
2015-12-21 14:51:10 -08:00
Vitor Balocco
a3d6553a30
Improve documentation for using React with Webpack
...
Fixes #5679
2015-12-17 17:22:56 +01:00
Jim
ab37776cc2
Merge pull request #5599 from zramaekers/shallow-compare-docs
...
Add documentation for shallowCompare addon
2015-12-16 15:34:04 -08:00
Jim
bec238a7c9
Added post about upgrading your code to avoid isMounted()
2015-12-15 16:25:07 -08:00
Lovisa Svallingson
2ff1b2e9e3
Clarify dependency installation
...
Split browserify and webpack to separate sections.
Remove `babelify` from the webpack section since it's only for browserify
2015-12-14 09:28:20 -07:00
adraeth
682d61537d
Correct highlight in tutorial7.js snippet
2015-12-13 17:38:30 +01:00
Jim
410cc30bf9
Merge pull request #5605 from thekevlau/patch-1
...
Adding class->className as a JSX gotcha
2015-12-11 12:13:48 -08:00
Kevin Lau
fcf74fe9da
Finalized wording
2015-12-11 12:05:05 -08:00
Andrew Henderson
ef32927eb5
Helps avoid a common Issue when following tutorial
...
https://github.com/reactjs/react-tutorial/issues/87
2015-12-10 22:44:36 -08:00
koh-taka
94325ea3ef
Fix wrong script name (showdown -> marked)
...
jp: チュートリアル内のshowdown を marked に修正
2015-12-11 11:23:56 +09:00
Vitor Balocco
b1964ad8a7
Clarify usage of .propTypes and .defaultProps when using stateless functional components
...
I've seen some people unaware about the fact that you can still specify `.propTypes` and `.defaultProps` when you are defining a functional component by setting them as properties of the function.
I thought clarifying this in the docs could help!
2015-12-10 23:21:59 +01:00
Kevin Lau
0130a04f05
added nuance about identifiers used in custom elements
2015-12-09 00:33:25 -08:00
Kevin Lau
1d3ff2a159
Adding class->className as a JSX gotcha
...
It's mentioned as a note in "JSX in Depth" however I think for clarity and ease of look-up, it would be a good idea to also include it in the JSX Gotchas list?
2015-12-04 16:51:38 -08:00
Zach Ramaekers
ad54e49f0c
adding documentation pages for shallowCompare addon
2015-12-04 08:53:33 -06:00
Jim
f4744f3a70
Merge pull request #5588 from jimfb/setprops-replaceprops-deprecated
...
Increase severity of setprops and replaceprops deprecations, since their removal is now imminent.
2015-12-03 10:29:20 -08:00
jim
8c7603311a
Increase severity of setprops and replaceprops deprecations, since their removal is now imminent.
2015-12-03 04:08:53 -08:00
Peter Newnham
31253c251f
Rename minlength to minLength in the tags and attributes documentation page
2015-12-03 09:35:08 +00:00
Paul O’Shannessy
0be7786e1c
Merge pull request #5559 from shogunsea/docs-add-marked
...
[docs]Add marked source in tutorial doc
2015-12-02 11:30:49 -08:00
zwhitchcox
b0ae955977
Update ref-10-glossary.md
2015-12-02 08:52:51 -05:00
Iurii Kucherov
36dfe62f68
Update 08.1-more-about-refs.md
2015-12-01 19:28:34 +01:00
xxin
25ef456b13
add marked source in tutorial doc
...
update wording of later section
no first, no next
more on wording
2015-11-30 19:08:11 -06:00
Paul O’Shannessy
f48bb3a274
Merge pull request #5520 from mhujer/docs-spread-fix-babel
...
Docs: Transform rest and spread properties using Babel 6
2015-11-28 11:47:30 -08:00
Paul O’Shannessy
6b641de6b8
Merge pull request #5546 from cody/singlechild
...
[docs] Single Child
2015-11-28 11:46:47 -08:00
Timur Carpeev
1e98c78541
Avoid mutating state in the example code
...
According to react documentation it is advised to:
NEVER mutate this.state directly, as calling setState() afterwards may replace the mutation you made. Treat this.state as if it were immutable.
https://facebook.github.io/react/docs/animation.html
In this particular case it is probably doesn't matter since setState is called directly after mutation, but it does provide a bad example of state mutation.
Another way of removing an item from an array can be `newItems = this.state.slice(0,i).concat(this.state.slice(i+1))` however the meaning can be less obvious to some.
2015-11-27 12:33:57 +01:00
Martin Hujer
ed8727ade7
Transform rest and spread properties using Babel 6
...
> Out of the box Babel doesn't do anything. In order to actually do
> anything to your code you need to enable plugins.
> (https://babeljs.io/docs/plugins/ )
2015-11-26 09:17:01 +01:00