score:0

<Image src = { item && item.img ? item.img : "https://sometestimage.com/test.jpg" } />

score:0

import Product from '../components/Products'

score:1

 <Image src={items && test.img ? test.img : "https://www.example.com/example.png"} />

score:1

import {useEffect} from "react"

const Product = ({items}) => {
    const useEffect = () => {
      console.log(items)
    }
    return (
        <Container>
        
            <Circle />
            
            <Image src={items.img} />
            
            <Info>
                <Icon>
                    <ShoppingCartOutlinedIcon />
                </Icon>
                <Icon>
                    <SearchIcon />
                </Icon>
                <Icon>
                    <FavoriteBorderOutlinedIcon />
                </Icon>
            </Info>
    </Container>
    )
}

export default Product;

Related Query

More Query from same tag