mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Refactor: its type is Container (#25153)
This commit is contained in:
@@ -15,6 +15,7 @@ import type {
|
||||
} from './ReactInternalTypes';
|
||||
import type {RootTag} from './ReactRootTags';
|
||||
import type {Cache} from './ReactFiberCacheComponent.new';
|
||||
import type {Container} from './ReactFiberHostConfig';
|
||||
|
||||
import {noTimeout, supportsHydration} from './ReactFiberHostConfig';
|
||||
import {createHostRootFiber} from './ReactFiber.new';
|
||||
@@ -128,7 +129,7 @@ function FiberRootNode(
|
||||
}
|
||||
|
||||
export function createFiberRoot(
|
||||
containerInfo: any,
|
||||
containerInfo: Container,
|
||||
tag: RootTag,
|
||||
hydrate: boolean,
|
||||
initialChildren: ReactNodeList,
|
||||
|
||||
@@ -15,6 +15,7 @@ import type {
|
||||
} from './ReactInternalTypes';
|
||||
import type {RootTag} from './ReactRootTags';
|
||||
import type {Cache} from './ReactFiberCacheComponent.old';
|
||||
import type {Container} from './ReactFiberHostConfig';
|
||||
|
||||
import {noTimeout, supportsHydration} from './ReactFiberHostConfig';
|
||||
import {createHostRootFiber} from './ReactFiber.old';
|
||||
@@ -128,7 +129,7 @@ function FiberRootNode(
|
||||
}
|
||||
|
||||
export function createFiberRoot(
|
||||
containerInfo: any,
|
||||
containerInfo: Container,
|
||||
tag: RootTag,
|
||||
hydrate: boolean,
|
||||
initialChildren: ReactNodeList,
|
||||
|
||||
Reference in New Issue
Block a user