react-toast-notifier 
A simple and easy to use toast notification module for react.
Installation
This is a React.js module available through the
npm registry.
Installation is done using the
npm install
command:
$ npm install react-toast-notifier
Example & Usage (Success)
;; // for success messageconst NotificationButton = { return <Fragment> <Notification /> <button onClick= { ; }>Toast</button> </Fragment> ;}; ;
Example & Usage (Error)
;; // for error messageconst NotificationButton = { return <Fragment> <Notification /> <button onClick= { ; }>Toast</button> </Fragment> ;}; ;
Example & Usage (Warning)
;; // for warning messageconst NotificationButton = { return <Fragment> <Notification /> <button onClick= { ; }>Toast</button> </Fragment> ;}; ;
Note
- autoDismissTimeout default time is 4000
- Available types : ["success", "warning", "error"]
Author
License
© Licensed under the MIT License.