Commit Graph

3411 Commits

Author SHA1 Message Date
Hou Chia 9f18ccdce9 Update 03-interactivity-and-dynamic-uis.md: correct typo
My file change corrects a typo in the document.

Best, 
Hou
2015-01-18 00:35:27 -08:00
Paul O’Shannessy c6686768eb Merge pull request #2874 from Carlsson87/patch-1
Update footer with correct year
2015-01-17 12:21:21 -08:00
Daniel Carlsson 4ffdbefaa2 Friends don't let friends look foolish on the internet
Updated your footer =)
2015-01-17 20:16:24 +01:00
Paul O’Shannessy f656f1966e Merge pull request #2297 from pedronauck/docs-namespace-in-jsx
Add a section at 'jsx-in-depth' talking about namespaced components
2015-01-16 16:21:22 -08:00
Paul O’Shannessy 4f50071de0 Merge pull request #2675 from af/topLevelAPIDocs
Top level api docs for createFactory
2015-01-16 13:18:28 -08:00
Paul O’Shannessy d6aa588dfc Merge pull request #2360 from beausmith/patch-1
Highlighted changed lines in examples
2015-01-16 13:10:00 -08:00
Paul O’Shannessy 31002e0cc1 Merge pull request #2707 from camsong/master
More Chinese Doc Translation
2015-01-16 13:06:40 -08:00
Paul O’Shannessy 1b85e611ad Merge pull request #2734 from Minwe/master
add Forms and Event System docs Chinese translation
2015-01-16 13:06:12 -08:00
Paul O’Shannessy d471fb4c0b Merge pull request #2795 from chenglou/tips-lib
[Docs] Tip on integration with other libraries
2015-01-16 13:05:43 -08:00
Paul O’Shannessy 69d40d1be3 Merge pull request #2824 from zpao/docs-tutorial-server
[docs] Talk about running a server in tutorial
2015-01-16 13:05:19 -08:00
Ben Alpert 1428ea7823 Merge pull request #2502 from fabiomcosta/patch-4
Removing unecessary resize listener
2015-01-16 12:08:34 -08:00
Paul O’Shannessy deae575dae v0.13.0-alpha.2 2015-01-16 10:33:42 -08:00
Paul O’Shannessy 588032da51 Update package deps 2015-01-16 10:33:42 -08:00
Paul O’Shannessy 2de1545eae Merge pull request #2867 from zpao/no-warn-mock-methods
Don't warn about plain classes when in mocked components
2015-01-15 16:45:05 -08:00
Paul O’Shannessy 069aec1d42 Don't warn about plain classes when in mocked components
Mocking both doesn't copy properties that start with an underscore, nor
does it copy values, only nested objects.
2015-01-15 16:39:57 -08:00
Sebastian Markbåge c01507fd11 Merge pull request #2866 from sebmarkbage/fixbindwarning
Don't bind callbacks to setState, setProps etc.
2015-01-15 15:36:50 -08:00
Paul O’Shannessy 45c0747a17 Merge pull request #2851 from jsfb/unique-key-in-dev-only
The unique key warning should only happen in dev.
2015-01-15 15:08:43 -08:00
Sebastian Markbage d7d3ea5560 Don't bind callbacks to setState, setProps etc.
We added a bind to the public instance, but instead we can just pass the
public instance as the context when we execute.

This avoids a warning that fires when we call bind on auto-bound methods.
2015-01-15 14:00:45 -08:00
Paul O’Shannessy 8e6e98b387 Merge pull request #2865 from zpao/revert-jasmine-helper
Revert "Merge pull request #2814 from jsfb/testutils-consolemock"
2015-01-15 13:47:34 -08:00
Paul O’Shannessy 967435b249 Revert "Merge pull request #2814 from jsfb/testutils-consolemock"
This reverts commit 9514861d93, reversing
changes made to cdec83732d.
2015-01-15 13:35:57 -08:00
Cheng Lou 251d31a515 Merge pull request #2859 from javawizard/patch-1
ref-08-reconciliation.md: grammar/punctuation fixes
2015-01-15 14:36:27 -05:00
Alex Boyd 941cba679e ref-08-reconciliation.md: grammar/punctuation fixes 2015-01-14 22:40:29 -07:00
Ben Alpert 8d5838af72 Merge pull request #2540 from spicyj/no-mutate-props
Warn when mutating props on a ReactElement
2015-01-14 11:37:43 -08:00
Paul O’Shannessy 892f0a59fe Fix lint on travis
PR #2852 was not quite correct
2015-01-13 16:55:10 -08:00
Paul O’Shannessy 29ca22c2ff Merge pull request #2852 from zpao/lint-fail-travis
Add eslint grunt task, fail travis for it
2015-01-13 16:12:15 -08:00
Paul O’Shannessy 84c83dca2d Add eslint grunt task, fail travis for it
This is it...
2015-01-13 16:11:42 -08:00
Paul O’Shannessy 54c82da15f Merge pull request #2751 from zpao/eslint-fixup
Eslint fixup
2015-01-13 15:27:54 -08:00
Paul O’Shannessy 47ee780caf [lint] fix consistent-returns 2015-01-13 15:26:33 -08:00
Paul O’Shannessy 2126600c37 [lint] disable a couple rules since rest args aren't processed right 2015-01-13 15:26:33 -08:00
Paul O’Shannessy 847357e42e [lint] Fix reasonable lines to 80
I don't agree with 80 on principal but it's what we have for now.

This fixes the reasonable cases. Most of the long lines are in docblocks
with long type information or containing links.
2015-01-13 15:26:33 -08:00
Paul O’Shannessy e27da99731 [lint] Fix majority of issues eslint found 2015-01-13 15:26:33 -08:00
Paul O’Shannessy df2ddc5dfa [lint] convert to single quotes 2015-01-13 15:26:33 -08:00
Paul O’Shannessy df64a67b7f codemod "use strict" to 'use strict' for better linting 2015-01-13 15:26:32 -08:00
Jim fa40eefa00 Merge pull request #2818 from jsfb/unmasked-context-in-performContextUpdate
Context warning should fire on update, not just initial mount.
Renamed a couple instances of context
2015-01-13 15:05:45 -08:00
Paul O’Shannessy aeffbef21f Merge pull request #2662 from zpao/eslint
Use eslint
2015-01-13 14:03:16 -08:00
Jim 6b5b1b3f17 The unique key warning should only happen in dev. 2015-01-13 14:03:00 -08:00
Paul O’Shannessy 3f8d4eaa63 Use eslint
These rules are very close to what we have internally. We may still miss
a couple things (jsdoc params being a big one) but it's good enough.
This is also more restrictive than what we enforce internally, but it's
for the best.
2015-01-13 14:01:34 -08:00
Sebastian Markbåge 7a3083af36 Merge pull request #2806 from sebmarkbage/baseclass
Warn when defined methods are used in plain JS classes
2015-01-13 11:40:52 -08:00
Sebastian Markbage 2330962d25 Warn when defined methods are used in plain JS classes
In ReactClass we use early validation to warn you if a accidentally defined
propTypes in the wrong place or if you mispelled componentShouldUpdate.

For plain JS classes there is no early validation process. Therefore, we
wait to do this validation until the component is mounted before we issue
the warning.

This should bring us to warning-parity with ReactClass.
2015-01-13 11:29:28 -08:00
Sebastian Markbåge d138f9a35b Merge pull request #2805 from sebmarkbage/baseclass1
Introducing ReactComponentBase base class
2015-01-13 11:00:56 -08:00
Sebastian Markbage ff032dc857 Introducing ReactComponentBase base class
This is the base class that will be used by ES6 classes.

I'm only moving setState and forceUpdate to this base class and the other
functions are disabled for modern classes as we're intending to deprecate
them. The base classes only have getters that warn if accessed. It's as if
they didn't exist.

ReactClass now extends ReactComponentBase but also adds the deprecated
methods. They are not yet fully deprecated on the ReactClass API.

I added some extra tests to composite component which we weren't testing
to avoid regressions.

I also added some test for ES6 classes. These are not testing the new
state initialization process. That's coming in a follow up.
2015-01-13 10:54:19 -08:00
Jim e4842b4ae2 Context warning should fire on update, not just initial mount.
Renamed a couple instances of context to make it clear if it was masked/unmasked
2015-01-12 16:40:08 -08:00
Ben Alpert 90053da7bd Merge pull request #2844 from kchia/patch-1
Update README.md insert comma
2015-01-12 09:45:52 -10:00
Hou Chia 08c7c556de Update README.md insert comma
The file change inserts a missing comma.

Best,
Hou
2015-01-12 11:29:17 -08:00
Jim d94acc0363 Merge pull request #2830 from jsfb/remove-tag-warning
Removed unknown tag warning/whitelist.
2015-01-12 10:42:44 -08:00
Ben Alpert a5aacb947f Warn when mutating props on a ReactElement
Test Plan: jest. Also used ballmer-peak in IE8 to verify that it still works.
2015-01-11 10:45:37 -10:00
Christopher Chedeau f50da7ec63 Merge pull request #2832 from kikyous/patch-1
Update 07-forms.md
2015-01-10 13:54:05 -08:00
Jim 61f7a5613b Removed unknown tag warning/whitelist. 2015-01-09 11:46:47 -08:00
chen bb52715f1c Update 07-forms.md 2015-01-09 10:19:42 +08:00
Paul O’Shannessy 8babd0ada3 [docs] Talk about running a server in tutorial
We've talked about this a few times and even half done it. This is for
real.
2015-01-07 17:26:54 -08:00