warning about unknown props
beckend opened this issue · 5 comments
beckend commented
By just mounting the container on react 15.2.0:
Warning: Unknown props `toastMessageFactory`, `toastType`, `preventDuplicates`, `newestOnTop` on <div> tag. Remove these props from the element. For details, see https://fb.me/react-unknown-prop
in div (created by ToastContainer)
in ToastContainer (created by Toastr)
in Toastr (created by App)
mikecousins commented
Yeah, the React team says this needs to be fixed as it will break in the next version: facebook/react#7152 (comment)
RangarajKaushikSundar commented
Seems like there is a bit of refactoring in place. Good share @beckend @mikecousins !
Deleted user commented
Did anyone find the cause and a subsequent fix for this?
RangarajKaushikSundar commented
@Harryandrew The component will work on lower versions of React. I have included this component in my project and am using React v15.1.0. I don't seem to face this issue, the code would need refactoring to circumvent this problem.