tomchentw/react-toastr

warning about unknown props

beckend opened this issue · 5 comments

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)

Yeah, the React team says this needs to be fixed as it will break in the next version: facebook/react#7152 (comment)

Seems like there is a bit of refactoring in place. Good share @beckend @mikecousins !

Did anyone find the cause and a subsequent fix for this?

@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.

Released v2.8.0