The latest release of the React has added StrictMode functionality.
StrictMode is a tool for highlighting potential problems in an application. Like Fragment, StrictMode does not render any visible UI. It activates additional checks and warnings for its descendants.
So now it throws an error while using a toast function

the error is not coming from react-toastify but from react-transition-group https://github.com/fkhadra/react-toastify/issues/388
Hey @tumdav,
The new RC of react-toastify support strict mode. You can install it as follow:
yarn add react-toastify@next or npm i react-toastify@next
I expect to launch the stable release next week if there is no bug.
@fkhadra seems it does not work for me, I am getting the same error in the console
Release version : "react-toastify": "^6.0.0-rc.2"

I'm personally no longer seeing this with react-toastify": "^6.0.0-rc.3",
Most helpful comment
Hey @tumdav,
The new RC of
react-toastifysupport strict mode. You can install it as follow:yarn add react-toastify@nextornpm i react-toastify@nextI expect to launch the stable release next week if there is no bug.