Skip to content

Commit

Permalink
fix: Avoid to use React.createFactory for React v17
Browse files Browse the repository at this point in the history
  • Loading branch information
pocke committed Oct 26, 2020
1 parent fcd3b4b commit 6e3d10b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ToastContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class ToastContainer extends React.PureComponent<Props> {
warning: "warning",
},
id: "toast-container",
toastMessageFactory: React.createFactory(ToastMessageAnimated),
toastMessageFactory: props => <ToastMessageAnimated {...props} />,
preventDuplicates: true,
newestOnTop: true,
onClick: _.noop,
Expand Down

0 comments on commit 6e3d10b

Please sign in to comment.