OlegWock/react-local-toast

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

Closed this issue · 4 comments

shehi commented

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

image

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

shehi commented

Why not use famous Animate.Css?

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

Fixed in v2 (also compatible with React 19 now)