mirror of
https://github.com/react/react.git
synced 2026-10-10 05:15:38 +08:00
* Use `this` inside invokeGuardedCallback It's slightly odd but that's exactly how our www fork works. Might as well do it in the open source version to make it clear we rely on context here. * Move invokeGuardedCallback into a separate file This lets us introduce forks for it. * Add a www fork for invokeGuardedCallback * Fix Flow
35 lines
1.0 KiB
JavaScript
35 lines
1.0 KiB
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.
|
|
*
|
|
* @flow
|
|
*/
|
|
|
|
import * as ReactFiberTreeReflection from 'react-reconciler/reflection';
|
|
import * as ReactInstanceMap from 'shared/ReactInstanceMap';
|
|
import {addUserTimingListener} from 'shared/ReactFeatureFlags';
|
|
|
|
import ReactDOM from './ReactDOM';
|
|
import * as ReactBrowserEventEmitter from '../events/ReactBrowserEventEmitter';
|
|
import * as ReactDOMComponentTree from './ReactDOMComponentTree';
|
|
import TapEventPlugin from '../events/TapEventPlugin';
|
|
|
|
Object.assign(
|
|
(ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: any),
|
|
{
|
|
// These are real internal dependencies that are trickier to remove:
|
|
ReactBrowserEventEmitter,
|
|
ReactFiberTreeReflection,
|
|
ReactDOMComponentTree,
|
|
ReactInstanceMap,
|
|
// Used by www msite:
|
|
TapEventPlugin,
|
|
// Perf experiment
|
|
addUserTimingListener,
|
|
},
|
|
);
|
|
|
|
export default ReactDOM;
|