Warning: ToastContainer: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead. #970
Labels
Merged in next
Merged but not live
Do you want to request a feature or report a bug?
feature
What is the current behavior?
When I am trying to use
react-toastify
withreact@18.2.0
I am getting this warning. The React MR to print this warning on console is here.I am pretty sure this is a small refactor to remove this warning and I could work on that 😄
What is the expected behavior?
No warning should appear
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
React 18.2
The text was updated successfully, but these errors were encountered: