react-use
react-use copied to clipboard
Ability to clear the clipboard state
Is your feature request related to a problem? Please describe. As the title suggests, it would be nice to be able to clear the clipboard internal state. Currently I have a modal that handles the clipboard and show different button states whenever the button is clicked to copy to clipboard, ex. "Copy to clipboard" -> "Copied" based on the state value has anything.
Describe the solution you'd like A function callback to only clear the internal state variable but leave the clipboard data alone.
+1 to this