mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-24 04:15:54 +08:00
style: remove warning form eslint
This commit is contained in:
@@ -35,7 +35,6 @@ const useRealShape = <T extends HTMLElement>(ref: MutableRefObject<T | null>): S
|
||||
})
|
||||
const update = () => {
|
||||
const { width, height } = getRealShape(ref.current)
|
||||
console.log(123, 'update')
|
||||
setState({ width, height })
|
||||
}
|
||||
useEffect(() => update(), [ref.current])
|
||||
|
||||
Reference in New Issue
Block a user