react-bulma-notification-fix
v1.1.1
Published
Notification component for react and bulma. if you have no jest compile issue,please use react-bulma-notification
Downloads
7
Maintainers
Keywords
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