Skip to content

Commit

Permalink
Move ReactDOMFloat to react-dom/src/ (#26514)
Browse files Browse the repository at this point in the history
This is not really part of the bindings, it's more part of the package
entry points. /shared/ is not really right neither because it's more
like an isomorphic entry point and not some utility.
  • Loading branch information
sebmarkbage authored Mar 30, 2023
1 parent 4c2fc01 commit 29a3be7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
File renamed without changes.
7 changes: 1 addition & 6 deletions packages/react-dom/src/client/ReactDOM.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,7 @@ import {
} from 'react-dom-bindings/src/events/ReactDOMControlledComponent';
import Internals from '../ReactDOMSharedInternals';

export {
prefetchDNS,
preconnect,
preload,
preinit,
} from 'react-dom-bindings/src/shared/ReactDOMFloat';
export {prefetchDNS, preconnect, preload, preinit} from '../ReactDOMFloat';

if (__DEV__) {
if (
Expand Down
7 changes: 1 addition & 6 deletions packages/react-dom/src/server/ReactDOMServerRenderingStub.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@
* @flow
*/

export {
preinit,
preload,
preconnect,
prefetchDNS,
} from 'react-dom-bindings/src/shared/ReactDOMFloat';
export {preinit, preload, preconnect, prefetchDNS} from '../ReactDOMFloat';

export function createPortal() {
throw new Error(
Expand Down

0 comments on commit 29a3be7

Please sign in to comment.