I’m facing a challenge with my project’s API integration.
Here’s the use case: I need to fetch data from an API, and once I receive a successful response, I want to enable a copy button/icon to copy that content. However, during page load and while waiting for the API response, I need to hide the copy button. How can I achieve this functionality effectively?
Any suggestions or code examples would be greatly appreciated.
I've tried to manage with custom state but it's not working.