UNPKG

833 BJavaScriptView Raw
1/**
2 * Copyright (c) 2013-present, Facebook, Inc.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 */
8
9'use strict';
10
11var DOMChildrenOperations = require('./DOMChildrenOperations');
12var ReactDOMComponentTree = require('./ReactDOMComponentTree');
13
14/**
15 * Operations used to process updates to DOM nodes.
16 */
17var ReactDOMIDOperations = {
18 /**
19 * Updates a component's children by processing a series of updates.
20 *
21 * @param {array<object>} updates List of update configurations.
22 * @internal
23 */
24 dangerouslyProcessChildrenUpdates: function (parentInst, updates) {
25 var node = ReactDOMComponentTree.getNodeFromInstance(parentInst);
26 DOMChildrenOperations.processUpdates(node, updates);
27 }
28};
29
30module.exports = ReactDOMIDOperations;
\No newline at end of file