react-bulma-notification
v1.1.0
Published
Notification component for react and bulma.
Downloads
55
Readme
react-bulma-notification
Install
npm i -S react-bulma-notification
Usage
import React, { Component, PureComponent } from 'react';
import ReactDOM from 'react-dom';
import 'bulma/css/bulma.css';
import Notification from 'react-bulma-notification';
import 'react-bulma-notification/css/index.css';
class App extends Component {
render() {
return (
<div className="container">
<a className="button is-danger" onClick={() => this.onClick('error')}>
Error
</a>button
</div>
);
onClick = () => {
Notification.error('This is an error!');
};
}
}
Documentation
http://lxzxl.github.io/react-bulma-notification