mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Remove the check for console.warn
We already polyfill this at FB and we should recommend https://github.com/paulmillr/console-polyfill for open source.
This commit is contained in:
1 parent
5f1eceb1ee
commit
1658feade8
2 files changed
+2
-2
No files matched your search
@@ -106,7 +106,7 @@ function validateExplicitKey(component) {
|
||||
message += ' It was passed a child from ' + childOwnerName + '.';
|
||||
}
|
||||
|
||||
global.console && console.warn && console.warn(message);
|
||||
console.warn(message);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -53,7 +53,7 @@ var ReactDOMTextarea = ReactCompositeComponent.createClass({
|
||||
// TODO (yungsters): Remove support for children content in <textarea>.
|
||||
var children = this.props.children;
|
||||
if (children != null) {
|
||||
global.console && console.warn && console.warn(
|
||||
console.warn(
|
||||
'Use the `defaultValue` or `value` props instead of setting children ' +
|
||||
'on <textarea>.'
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user