From 245deed4b6a3355f5b5e9cd3314667a51c4e909b Mon Sep 17 00:00:00 2001 From: Amumu Date: Wed, 29 Apr 2020 22:06:04 +0800 Subject: [PATCH] fix proper react import again (#23762) --- components/_util/ref.ts | 2 +- components/anchor/context.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);