I am calling an API to fetch the data of an object. The object properties are as follows:
obj:{
name: "item",
index:1,
amount :20,
}
What I want is to simply copy the properties of this object (name, index, amount) to clipboard. How can I achieve this in React and javascript? Thanks in advance.