diff --git a/src/Popup/useStretchStyle.ts b/src/Popup/useStretchStyle.ts index 444ea02c..d757e72c 100644 --- a/src/Popup/useStretchStyle.ts +++ b/src/Popup/useStretchStyle.ts @@ -1,4 +1,4 @@ -import React from 'react'; +import * as React from 'react'; import { StretchType } from '../interface'; export default ( diff --git a/src/index.tsx b/src/index.tsx index 022744ad..37075fa9 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,4 +1,5 @@ -import React, { HTMLAttributes } from 'react'; +import * as React from 'react'; +import { HTMLAttributes } from 'react'; import ReactDOM from 'react-dom'; import raf from 'rc-util/lib/raf'; import contains from 'rc-util/lib/Dom/contains';