The following text need to be copied to the clipboard but I think because of my inputRef the line is not breaking can anyone help how to use textarea instead of this ?
copyCustomerDetails = () =>
let text = `Hi :${name}
Mobile Number: ${mobileNo}
HallNumber: ${Label}
City:${state} `;
console.log("text", text);
this.inputRef.current.value = text;
this.inputRef.current.select();
document.execCommand("copy");
message.success("Customer Details copied to clipboard"); };
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…