Files
react/packages/shared/ReactElementType.js
Sebastian Markbåge fd0da3eef1 Remove _owner field from JSX elements in prod if string refs are disabled (#28739)
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.
2024-04-04 11:20:15 -04:00

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, ...},
};