Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80517 views
1
/**
2
* Copyright 2013-2015, 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
* @providesModule ReactCurrentOwner
10
*/
11
12
'use strict';
13
14
/**
15
* Keeps track of the current owner.
16
*
17
* The current owner is the component who should own any components that are
18
* currently being constructed.
19
*
20
* The depth indicate how many composite components are above this render level.
21
*/
22
var ReactCurrentOwner = {
23
24
/**
25
* @internal
26
* @type {ReactComponent}
27
*/
28
current: null
29
30
};
31
32
module.exports = ReactCurrentOwner;
33
34