react-useanimations icon indicating copy to clipboard operation
react-useanimations copied to clipboard

useAnimations shows two icons

Open chenmoonmo opened this issue 3 years ago • 1 comments

when i use useAnimations to render icon, it can not change when i use reverse, and then i set padding for wrapperStyle, and there are two different state icon showed. you can check it at: https://codesandbox.io/embed/damp-butterfly-4onbfp?fontsize=14&hidenavigation=1&theme=dark

chenmoonmo avatar Aug 25 '22 06:08 chenmoonmo

@chenmoonmo this is caused by the <StrictMode> component I think. Here it is fixed: https://codesandbox.io/s/loving-fog-5rofxw?file=/src/index.js

CesarBenavides777 avatar Sep 24 '22 15:09 CesarBenavides777