UNPKG

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