mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +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:
committed by
Paul O’Shannessy
parent
5f1eceb1ee
commit
1658feade8
@@ -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