Reactjs Clic Copy

onClick={() => {navigator.clipboard.writeText(this.state.textToCopy)}}
Grumpy Gharial