From 6e3d10b3db6ed981e1dbc51254d06dbf5c7b8b94 Mon Sep 17 00:00:00 2001 From: Masataka Pocke Kuwabara Date: Mon, 26 Oct 2020 12:16:47 +0900 Subject: [PATCH] fix: Avoid to use `React.createFactory` for React v17 https://github.com/tomchentw/react-toastr/issues/139 --- src/components/ToastContainer.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ToastContainer.jsx b/src/components/ToastContainer.jsx index a0bd2f1..04812b0 100644 --- a/src/components/ToastContainer.jsx +++ b/src/components/ToastContainer.jsx @@ -46,7 +46,7 @@ export class ToastContainer extends React.PureComponent { warning: "warning", }, id: "toast-container", - toastMessageFactory: React.createFactory(ToastMessageAnimated), + toastMessageFactory: props => , preventDuplicates: true, newestOnTop: true, onClick: _.noop,