I've been stuck on this issue for a while now and couldn't find anything to help me, so I would love if someone experienced could help me out on this.
lets say I have this const:
const test = "Hello World".
How can I have an onClick function on a button, where when I click it copies the string of test to the users clipboard?