useIMGElementStateWithCache
export
function
useIMGElementStateWithCache
(
 Â
props
:
UseIMGElementStateWithCacheProps
)
:
IMGElementStateError
|
IMGElementStateSuccess
This hook is useful when one has access to image natural dimensions prior to
loading. The cachedNaturalDimensions
prop must be passed to immediately
compute concrete dimensions.
#
Parametersprops
#
required