Building a simple Copy button to copy text to the clipboard and display a 'Copied!' message briefly before reverting.Tried implementing the copy button using vanilla JavaScript DOM manipulation instead of React state management.Realized that directly manipulating the DOM in React is problematic due to React's declarative rendering nature.Adopted a better approach using useState to manage button text, ensuring proper synchronization between UI and component state in React.