copie de clic reactjs

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