(partialProps, callback)
| 6326 | } |
| 6327 | |
| 6328 | function legacySetProps(partialProps, callback) { |
| 6329 | var component = this._reactInternalComponent; |
| 6330 | if ("development" !== 'production') { |
| 6331 | "development" !== 'production' ? warning(false, 'ReactDOMComponent: Do not access .setProps() of a DOM node. ' + 'Instead, call ReactDOM.render again at the top level.%s', getDeclarationErrorAddendum(component)) : undefined; |
| 6332 | } |
| 6333 | if (!component) { |
| 6334 | return; |
| 6335 | } |
| 6336 | ReactUpdateQueue.enqueueSetPropsInternal(component, partialProps); |
| 6337 | if (callback) { |
| 6338 | ReactUpdateQueue.enqueueCallbackInternal(component, callback); |
| 6339 | } |
| 6340 | } |
| 6341 | |
| 6342 | function legacyReplaceProps(partialProps, callback) { |
| 6343 | var component = this._reactInternalComponent; |
nothing calls this directly
no test coverage detected