UNPKG

582 BJavaScriptView Raw
1/**
2 * Copyright (c) 2014-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 emptyComponentFactory;
12
13var ReactEmptyComponentInjection = {
14 injectEmptyComponentFactory: function (factory) {
15 emptyComponentFactory = factory;
16 }
17};
18
19var ReactEmptyComponent = {
20 create: function (instantiate) {
21 return emptyComponentFactory(instantiate);
22 }
23};
24
25ReactEmptyComponent.injection = ReactEmptyComponentInjection;
26
27module.exports = ReactEmptyComponent;
\No newline at end of file