diff --git a/components/_util/ref.ts b/components/_util/ref.ts index 6221eb1041..875b504ffb 100644 --- a/components/_util/ref.ts +++ b/components/_util/ref.ts @@ -1,4 +1,4 @@ -import React from 'react'; +import * as React from 'react'; export function fillRef(ref: React.Ref, node: T) { if (typeof ref === 'function') { diff --git a/components/anchor/context.ts b/components/anchor/context.ts index fecad8a172..9a40f9f1de 100644 --- a/components/anchor/context.ts +++ b/components/anchor/context.ts @@ -1,4 +1,4 @@ -import React from 'react'; +import * as React from 'react'; import { AntAnchor } from './Anchor'; const AnchorContext = React.createContext(null as any);