The types from #78 suggest that passing refs to AspectRatio is supported just like a native div, but this currently results in a dev warning that the ref isn't being passed to the underlying functional component.
This PR updates AspectRatio to use forwardRef to support this behavior.
The types from #78 suggest that passing
ref
s toAspectRatio
is supported just like a nativediv
, but this currently results in a dev warning that the ref isn't being passed to the underlying functional component.This PR updates
AspectRatio
to useforwardRef
to support this behavior.