File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ src/addons/__tests__/ReactComponentWithPureRenderMixin-test.js
40
40
41
41
src/addons/__tests__/ReactDOMFactories-test.js
42
42
* allow factories to be called without warnings
43
+ * warns once when accessing React.DOM methods
43
44
44
45
src/addons/__tests__/ReactFragment-test.js
45
46
* warns for numeric keys on objects as children
Original file line number Diff line number Diff line change @@ -91,9 +91,9 @@ var React = {
91
91
} ;
92
92
93
93
if ( __DEV__ ) {
94
- // React.DOM factories are deprecated, set up a Proxy to listen for
95
- // accesses to this namespace and alert users to switch to the
96
- // associated addon .
94
+ // React.DOM factories are deprecated. Set up a Proxy to listen for
95
+ // accesses to the React.DOM namespace and alert users to switch to
96
+ // the `react-addons-dom-factories` package .
97
97
if ( typeof Proxy === 'function' ) {
98
98
var hasWarnedOfFactories = false ;
99
99
@@ -102,8 +102,8 @@ if (__DEV__) {
102
102
if ( ! hasWarnedOfFactories ) {
103
103
warning (
104
104
false ,
105
- 'Accessing React.DOM factories ( like ` React.DOM.%s`) is deprecated ' +
106
- 'and will be removed in the future. Please use the ' +
105
+ 'Accessing factories like React.DOM.%s has been deprecated ' +
106
+ 'and will be removed in the future. Use the ' +
107
107
'react-addons-dom-factories package instead.' ,
108
108
name
109
109
) ;
You can’t perform that action at this time.
0 commit comments