We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I got can not read container of undefined. below is my snippet
import { ToastContainer, ToastMessage } from 'react-toastr'; const ToastMessageFactory = React.createFactory(ToastMessage.animation); addAlert () { this.container.success( "my-title", "my-fascinating-toast-message", { timeOut: 5000, extendedTimeOut: 3000 }); } render() { return (<div> <ToastContainer ref={(input) => {this.container = input;}} toastMessageFactory={ToastMessageFactory} className="toast-top-right" preventDuplicates="true" /> <button onClick={this.addAlert}>Add Toast</button> </div>); }
The text was updated successfully, but these errors were encountered:
@planetwebsolution the documentation says
`let ReactToastr = require("react-toastr") let {ToastContainer} = ReactToastr
let ToastMessageFactory = React.createFactory(ReactToastr.ToastMessage.animation)`
but not sure if that will fix your problems
Sorry, something went wrong.
Did your console has errors?
You need to import React as well, if you haven't already. The example assumes usage within an existing component.
No branches or pull requests
I got can not read container of undefined. below is my snippet
The text was updated successfully, but these errors were encountered: