Optional
props: TLoadImagePropsconst loaderWithoutCache = loadImage('/image.jpg');
loaderWithoutCache.then((img) => console.log(img)).catch(() => {});
const loaderWithCache = loadImage('/image.jpg', {
crossOrigin: 'anonymous',
useCache: true,
});
Load an image