M
Size: a a a
M
МК
МК
PD
return image && (
<VideoThumbnailContainer>
<VideoThumbnail
alt={`${i18n.t("videoThumbnail")}${title ? ` "${title}"` : ""}`}
onError={handleImgError}
src={image}
/>
</VideoThumbnailContainer>
);
Error: VideoThumbnailComponent(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.
return image ? (
<VideoThumbnailContainer>
<VideoThumbnail
alt={`${i18n.t("videoThumbnail")}${title ? ` "${title}"` : ""}`}
onError={handleImgError}
src={image}
/>
</VideoThumbnailContainer>
) : (null);
PD

const hintRef = useRef(null);но еслинт ругается. Так корректно подправить?
useEffect(() => {
setSize(() => (hintRef.current?.scrollHeight));
});
const hintRef = useRef(null);hintRef ведь объект. Это не проблема? Такую hintRef.current пробовал добавить зависимость, но ему не нравится
useEffect(() => {
setSize(() => (hintRef.current?.scrollHeight));
}, [hintRef]);
V
ИШ
ИШ
GA
ИШ
ПВ
AM
А
ПВ