react-notify-bootstrap
v1.0.23
Published
Simple Boostrap notification for React app
Downloads
19
Maintainers
Readme
react-notify-bootstrap
Simple Bootstrap notification for React app
react-notify-bootstrap allow you to add bootstrap notification to your app with ease.
Install
npm install --save react-notify-bootstrap
Usage
import React, { Component } from 'react'
import Notification, { notify } from 'react-notify-bootstrap'
class App extends Component {
sendNotification = () => {
notify({ text: "Notification was sent successfully", variant: "success" });
};
render() {
return (
<React.Fragment>
<button className="btn" onClick={this.sendNotification}>Notify!</button>
<Notification />
</React.Fragment>
)
}
}
Demo
Example Code
API
Notification
notify
License
MIT © atasoyfurkan