UNPKG

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