mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Feature Flag for React.jsx` "spreading a key to jsx" warning (#18074)
Adds a feature flag for when React.jsx warns you about spreading a key into jsx. It's false for all builds, except as a dynamic flag for fb/www. I also included the component name in the warning.
This commit is contained in:
1 parent
3f85d53ca6
commit
b789060dca
11 files changed
+29
-8
No files matched your search
@@ -51,6 +51,7 @@ export const deferPassiveEffectCleanupDuringUnmount = false;
|
||||
export const runAllPassiveEffectDestroysBeforeCreates = false;
|
||||
export const isTestEnvironment = false;
|
||||
export const enableModernEventSystem = false;
|
||||
export const warnAboutSpreadingKeyToJSX = false;
|
||||
|
||||
// Only used in www builds.
|
||||
export function addUserTimingListener() {
|
||||
|
||||
Reference in new issue
Block a user