Warning: ToastContainer: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead. #970
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 with react@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 😄
Warning: ToastContainer: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
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?
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