Skip to content

Commit 8d413bf

Browse files
author
Brian Vaughn
authored
Remove React.error and React.warn (#16126)
* Remove React.error/React.warn with React.getComponentStack
1 parent 29b4559 commit 8d413bf

File tree

3 files changed

+0
-240
lines changed

3 files changed

+0
-240
lines changed

packages/react/src/React.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ import {
5151
jsxWithValidationDynamic,
5252
} from './ReactElementValidator';
5353
import ReactSharedInternals from './ReactSharedInternals';
54-
import {error, warn} from './withComponentStack';
5554
import createEvent from 'shared/createEventComponent';
5655
import {enableJSXTransformAPI, enableFlareAPI} from 'shared/ReactFeatureFlags';
5756
const React = {
@@ -72,9 +71,6 @@ const React = {
7271
lazy,
7372
memo,
7473

75-
error,
76-
warn,
77-
7874
useCallback,
7975
useContext,
8076
useEffect,

packages/react/src/__tests__/withComponentStack-test.js

Lines changed: 0 additions & 188 deletions
This file was deleted.

packages/react/src/withComponentStack.js

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)