react-local-toast icon indicating copy to clipboard operation
react-local-toast copied to clipboard

[React-18] Warning: findDOMNode is deprecated in StrictMode.

Open shehi opened this issue 3 years ago • 3 comments

Another bug that pops up in React-18 (a NextJs app):

image

shehi avatar Nov 01 '22 11:11 shehi

Yeah, that's because I used quite outdated library for animation in this project (https://reactcommunity.org/react-transition-group/). If someone has energy to rewrite it to any modern alternative, that would be great.

This is only a warning, so it shouldn't break anything in your project

OlegWock avatar Nov 01 '22 19:11 OlegWock

Why not use famous Animate.Css?

shehi avatar Nov 13 '22 15:11 shehi

Because they achieve two different goals. Animate.css is just a preset of ready-made CSS animations while react-transition-group exposes 'state' of component (just mounted, going to be unmounted, etc) which in turn enables us to use CSS animation

OlegWock avatar Nov 16 '22 10:11 OlegWock

Fixed in v2 (also compatible with React 19 now)

OlegWock avatar Apr 30 '24 12:04 OlegWock