4 * Copyright 2013-present, Facebook, Inc.
7 * This source code is licensed under the BSD-style license found in the
8 * LICENSE file in the root directory of this source tree. An additional grant
9 * of patent rights can be found in the PATENTS file in the same directory.
12 // Based off https://github.com/ForbesLindesay/umd/blob/master/template.js
15 if (typeof exports === "object" && typeof module !== "undefined") {
16 module.exports = f(require('react'));
19 } else if (typeof define === "function" && define.amd) {
25 if (typeof window !== "undefined") {
27 } else if (typeof global !== "undefined") {
29 } else if (typeof self !== "undefined") {
32 // works providing we're not in "use strict";
33 // needed for Java 8 Nashorn
34 // see https://github.com/facebook/react/issues/3037
37 g.ReactDOM = f(g.React);
41 return React.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;