Jesse McKee
03/31/2023, 10:19 PMturansky
03/31/2023, 11:10 PMturansky
03/31/2023, 11:12 PM@file:JsModule("react-progressive-graceful-image")
external interface ProgressiveImageProps: Props {
// ...
}
@JsName("default")
external val ProgressiveImage: ComponentClass<ProgressiveImageProps>Jesse McKee
04/01/2023, 12:18 AM{(src) => <img src={src} alt="an image" />} in kotlin?
as apart of the larger
<ProgressiveImage src="large-image.jpg" placeholder="tiny-image.jpg">
{(src) => <img src={src} alt="an image" />}
</ProgressiveImage>
Everything else is pretty clear, I assume this is the children? I'm a little unsure how to bring this over and use it since the src in the example I believe is a prop that switches between the passed src and placeholder in the original component.turansky
04/01/2023, 2:06 AMchidren signatureturansky
04/01/2023, 2:07 AMchildren property
children = { src -> ... }Jesse McKee
04/01/2023, 2:36 AM