@samitouri / QOS-React-2 / commits / e40f0b2603

Remove checkReact (#21132)

I don't know what this is useful for but I suspect it was only useful at FB and is not applicable to ES modules at FB nor elsewhere.

Sebastian Markbåge committed Mar 29, 2021 at 22:35 UTC e40f0b260303441710d762a83afc8c41aefe1daa
2 files changed -18
packages/react-dom/src/client/ReactDOM.js
-1
@@ -10,7 +10,6 @@
10 import type {ReactNodeList} from 'shared/ReactTypes';
11 import type {Container} from './ReactDOMHostConfig';
12
13 -import '../shared/checkReact';
13 import {
14 findDOMNode,
15 render,
packages/react-dom/src/shared/checkReact.js deleted
-17
@@ -1,17 +0,0 @@
1 -/**
2 - * Copyright (c) Facebook, Inc. and its affiliates.
3 - *
4 - * This source code is licensed under the MIT license found in the
5 - * LICENSE file in the root directory of this source tree.
6 - *
7 - * @flow
8 - */
9 -
10 -import * as React from 'react';
11 -import invariant from 'shared/invariant';
12 -
13 -invariant(
14 - React,
15 - 'ReactDOM was loaded before React. Make sure you load ' +
16 - 'the React package before loading ReactDOM.',
17 -);