UNPKG

782 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 ReactDOMIDOperations = require('./ReactDOMIDOperations');
13
14/**
15 * Abstracts away all functionality of the reconciler that requires knowledge of
16 * the browser context. TODO: These callers should be refactored to avoid the
17 * need for this injection.
18 */
19var ReactComponentBrowserEnvironment = {
20 processChildrenUpdates: ReactDOMIDOperations.dangerouslyProcessChildrenUpdates,
21
22 replaceNodeWithMarkup: DOMChildrenOperations.dangerouslyReplaceNodeWithMarkup
23};
24
25module.exports = ReactComponentBrowserEnvironment;
\No newline at end of file