Answer the question
In order to leave comments, you need to log in
How to cache an image?
Image paths come via the API, in the component I render like this:
const Poster = ({ result }) => {
return (
<>
{result.path ? (
<img
src={`https://image.tmdb.org/t/p/w300${result.path}`}
alt="Изображение"
/>
) : (
<></>
)}
</>
);
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question