Jim
526d5c0edc
Merge pull request #5589 from wrakky/fix-minlength-docs
...
Rename minlength to minLength in the tags and attributes documentation page
2015-12-03 04:04:45 -08:00
Peter Newnham
31253c251f
Rename minlength to minLength in the tags and attributes documentation page
2015-12-03 09:35:08 +00:00
Jim
50c7b1792c
Merge pull request #5570 from jimfb/remove-setprops-replaceprops
...
Remove setProps and replaceProps.
2015-12-02 19:09:19 -08: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
Paul O’Shannessy
3ca15b0090
Merge pull request #5584 from zwhitchcox/patch-2
...
Update ref-10-glossary.md
2015-12-02 11:14:22 -08:00
zwhitchcox
b0ae955977
Update ref-10-glossary.md
2015-12-02 08:52:51 -05:00
Scott Feeney
8557cc0d67
Merge pull request #5561 from graue/setstate-cwm
...
shallow render: fix setState in componentWillMount
2015-12-01 19:49:15 -08:00
Scott Feeney
9c21e2f3c4
shallow render: fix setState in componentWillMount
2015-12-01 19:43:52 -08:00
Ben Alpert
6b3ee0e74d
Merge pull request #5576 from spicyj/log-top-level
...
Log top-level renders with console.time
2015-12-01 11:34:40 -08:00
Ben Alpert
a0f88d29df
Log top-level renders with console.time
...
Behind a flag.
2015-12-01 11:29:13 -08:00
Paul O’Shannessy
f5840e685e
Merge pull request #5581 from yuyokk/patch-1
...
Update 08.1-more-about-refs.md
2015-12-01 11:03:59 -08:00
Iurii Kucherov
36dfe62f68
Update 08.1-more-about-refs.md
2015-12-01 19:28:34 +01:00
Paul O’Shannessy
13c398bef6
Merge pull request #5536 from zpao/keys-on-prototypes
...
Don't use `key` when defined on String, Number prototypes
2015-11-30 23:33:26 -08: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
jim
fbf81a8435
Remove setProps and replaceProps.
2015-11-30 11:46:07 -08:00
Jim
940a75b1fe
Merge pull request #5564 from jackiewung/master
...
Fix file reference typo in starter
2015-11-30 09:34:15 -08:00
Jackie Wung
f1d3f78334
Fix file reference typo in starter
2015-11-29 18:07:31 -08:00
Paul O’Shannessy
34fbcf20d8
Merge pull request #5526 from yangshun/todo-app-id
...
[docs] Use id for TodoApp example
2015-11-28 11:58:20 -08: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
Paul O’Shannessy
d54b151bc2
Merge pull request #5556 from timuric/patch-1
...
Avoid mutating state in the example code
2015-11-28 11:30:35 -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
Ben Alpert
8248470bd9
Merge pull request #5547 from spicyj/mc-noq
...
Kill global queue in ReactMultiChild
2015-11-25 13:13:01 -08:00
Ben Alpert
418ba27485
Kill global queue in ReactMultiChild
...
As we move away from using HTML for updates, this becomes less useful.
2015-11-25 12:59:02 -08:00
Ben Alpert
08499f9938
Turn on useCreateElement by default
...
Facebook has been running with this on for a couple weeks now with no ill effects.
2015-11-25 12:59:01 -08:00
Ben Alpert
3722616349
Merge pull request #5543 from spicyj/rt103
...
Clarify wording in the tutorial
2015-11-25 09:37:28 -08:00
Stefan Dombrowski
c6025da952
[docs] Single Child
...
* Single Child belongs to Prop Validation, so it was moved there.
* "throw" was changed to "warn".
2015-11-25 17:34:40 +01:00
Paul O’Shannessy
54e6057b1a
Merge pull request #5523 from hejld/add-selection-and-composition-events-on-reference-page
...
[docs] Add missing sections to events reference page in IT and CN
2015-11-24 09:44:49 -08:00
Paul O’Shannessy
e95d3dd812
Merge pull request #5539 from matthewlooi/addCodeHighlightToTutorialDoc
...
Add highlight to a line of code to tutorial21.js
2015-11-24 09:44:03 -08:00
Ben Alpert
58901af7a6
Clarify wording in the tutorial
...
reactjs/react-tutorial#103
2015-11-24 09:30:33 -08:00
hejld
18a3a3979e
Add missing sections to events reference page in IT and CN
2015-11-24 15:56:58 +01:00
Matthew
e02bd0543f
add highlight to a line of code to tutorial20.js (all languages included)
2015-11-24 01:23:55 -05:00
Paul O’Shannessy
f44a0778e3
Don't use key when defined on String, Number prototypes
2015-11-23 15:33:34 -08:00
Paul O’Shannessy
d01188133e
Merge pull request #5533 from kryogenic/patch-1
...
Use null instead of '' in ternary expression
2015-11-23 12:12:14 -08:00
Kale
b74e53c3ca
Use null instead of '' in ternary expression
...
A blank string ('') resolves to <span></span> which produces a warning when place inside a <tr>
2015-11-23 06:38:08 -07:00
Paul O’Shannessy
7ea1d15197
Merge pull request #5524 from chenglou/woohoo-its-me
...
Remove unreachable return from shouldUpdateReactComponent
2015-11-22 18:54:17 -08:00
Tay Yang Shun
bf4bd19101
[docs] Use id for TodoApp example
2015-11-22 11:54:39 +08:00
Cheng Lou
60af7d1c3d
Remove unreachable return from shouldUpdateReactComponent
...
Eslint didn't catch this (we do have this rule turned on) because it's a
big. There are no other locations I think. Detected that when I minified
some code.
2015-11-21 18:00:40 -05:00
Paul O’Shannessy
c5867ea401
Merge pull request #5518 from mhujer/docs-spread-fix
...
Docs: Rest and Spread Properties - ECMAScript
2015-11-20 11:30:02 -08:00
Ben Alpert
812e1a877f
Merge pull request #5500 from hejld/master
...
Update DOM_OPERATION_TYPES mappings for ReactDefaultPerfAnalysis
2015-11-20 11:21:06 -08:00
Sebastian Markbåge
64f795e5ef
Merge pull request #5411 from simonewebdesign/master
...
ReactShallowRenderer.render returns the rendered output
2015-11-20 11:20:37 -08:00
Martin Hujer
23edc0d274
Rest/Spread Properties may not be part of ES7
...
According to the http://www.2ality.com/2015/11/tc39-process.html it is
not a good idea to guess target ES version until the proposal reaches
later phases.
Even the proposal repository now states
> It is a Stage 2 proposal for ECMAScript. <
(it has been changed in https://github.com/sebmarkbage/ecmascript-rest-spread/commit/e9813ac78ad59994585f12e17be57e776378fdc4 )
2015-11-20 19:36:29 +01:00
Ben Alpert
acabb22a1d
Merge pull request #5503 from spicyj/measure-analyze
...
benchmarking: measure and analyze scripts
2015-11-19 17:01:53 -08:00
Ben Alpert
907dee2b5d
Merge pull request #5451 from spicyj/empty-comments
...
Use comment nodes for empty components
2015-11-19 16:56:23 -08:00
Paul O’Shannessy
1cdbff26ab
Merge pull request #5511 from KeweiCodes/patch-1
...
Typo
2015-11-19 15:56:25 -08:00
Paul O’Shannessy
aa1e58a41b
Merge pull request #5508 from yangshun/patch-1
...
Add in missing closing </li> for docs template
2015-11-19 13:57:37 -08:00
Kewei Jiang
179263c72f
Typo
2015-11-20 10:01:29 +13:00
Jim
22a3f6724a
Merge pull request #5510 from jimfb/useless-find-dom-nodes
...
Removed unnecessary variables/assertions.
2015-11-19 12:14:05 -08:00
jim
1d071c20e8
Removed unnecessary variables/assertions.
2015-11-19 11:32:51 -08:00