mirror of
https://github.com/facebook/react.git
synced 2026-02-23 20:23:02 +00:00
In prod, the `_owner` field is only used for string refs so if we have string refs disabled, we don't need this field. In fact, that's one of the big benefits of deprecating them.
22 lines
402 B
JavaScript
22 lines
402 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow
|
|
*/
|
|
|
|
export type ReactElement = {
|
|
$$typeof: any,
|
|
type: any,
|
|
key: any,
|
|
ref: any,
|
|
props: any,
|
|
// __DEV__ or for string refs
|
|
_owner: any,
|
|
|
|
// __DEV__
|
|
_store: {validated: boolean, ...},
|
|
};
|