score:0

class ProductImage extends React.Component<Props> {
    render() {
        return <div>
           <img className="img-fluid p-2 border" src={require(this.props.src)} />
           <p>{this.props.src}</p>
        </div>;
    }
}

score:0

class ProductImage extends React.Component<Props> {
    render() {
        return <div><Image className="img-fluid p-2 border" style={{width:"100%", height:"600px"}} src={this.props.src}></Image><p>{this.props.src}</p></div>;
    }
}

score:0

<Image className="img-fluid p-2 border" src={this.props.src}></Image>;

Related Query

More Query from same tag