4.1.2
Simple release: adds forwardRef
to SolitoImage
on Web, passing down the ref to NextImage
under the hood:
import { SolitoImage } from 'solito/image'
export default function Image() {
const ref = useRef<SolitoImage>(null)
return <SolitoImage ref={ref} src="" alt="" height={300} width={300} />
}
Addresses #439.
Previous versions of 4.1
had messed up NPM releases, which is why it skips to this one.