mirror of
https://github.com/facebook/react.git
synced 2026-02-24 12:43:00 +00:00
* add legacy context APIs warning in strict mode * refactor if statement and the warning message * add other flags for type check * add component stack tree and refactor wording * fix the nits
21 lines
453 B
JavaScript
21 lines
453 B
JavaScript
/**
|
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
* @flow
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const ReactFeatureFlags = {
|
|
debugRenderPhaseSideEffects: false,
|
|
debugRenderPhaseSideEffectsForStrictMode: false,
|
|
warnAboutDeprecatedLifecycles: true,
|
|
warnAboutLegacyContextAPI: true,
|
|
};
|
|
|
|
module.exports = ReactFeatureFlags;
|