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:
Sunil Pai authored and GitHub committed 2020-02-20 11:30:04 +00:00
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() {