UNPKG

720 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 ReactDOM = require('react-dom/lib/ReactDOM');
12
13exports.getReactDOM = function () {
14 return ReactDOM;
15};
16
17if (process.env.NODE_ENV !== 'production') {
18 var ReactPerf;
19 var ReactTestUtils;
20
21 exports.getReactPerf = function () {
22 if (!ReactPerf) {
23 ReactPerf = require('react-dom/lib/ReactPerf');
24 }
25 return ReactPerf;
26 };
27
28 exports.getReactTestUtils = function () {
29 if (!ReactTestUtils) {
30 ReactTestUtils = require('react-dom/lib/ReactTestUtils');
31 }
32 return ReactTestUtils;
33 };
34}
\No newline at end of file