например:
Код: Выделить всё
C:\wamp64\www\ecommerce\storage\app\public\product_images\gibson-lp-classic-20240717001924.png
Код: Выделить всё
{images.map((image, index) => (
[img]{
(image instanceof File || image instanceof Blob
? URL.createObjectURL(image)
: '')
}
alt={image.name || 'Image'}
className="w-16 h-16 object-cover mr-4"
/>
handleImageRemove(index)}
>
Delete
))}
{errors.length > 0 && (
{errors.map((error, index) => (
{error}
))}
)}
есть ли кто-нибудь, кто может указать мне правильное направление в этом вопросе?
спасибо!
Подробнее здесь: https://stackoverflow.com/questions/788 ... -and-react