replace old docs
This commit is contained in:
6
packages/docs/src/react.d.ts
vendored
6
packages/docs/src/react.d.ts
vendored
@@ -2,3 +2,9 @@ import "react"
|
||||
declare module "react" {
|
||||
export function createContext<Value>(): Context<Value | undefined>
|
||||
}
|
||||
|
||||
declare module "react-dom" {
|
||||
export function createRoot(element: Element): {
|
||||
render(element: React.ReactNode): void
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user