Currently, I have data in "this.props.embed_url"... and I want to allow my user to click on the gif shown, and they'll have the embed URL copied to their clipboard. Preferably using the onClick option. But any solution would be great!
import React, {Component} from 'react';
class GIFView extends Component {
constructor(props){
super(props);
}
render(){
return(
<div className = 'gif-item'>
<img src={this.props.src} placeholder={this.props.embed_url} className = 'gif-image'/>
<div>
<a href = {this.props.bitly_url} target="_blank" rel="noopener noreferrer" className = 'gif-title'>{this.props.title}</a>
</div>
</div>
)
}
}
export default GIFView;