react-notify-toast
Version:
Toast notifications for React.js
25 lines (20 loc) • 491 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
import {defaults, mergeOptions} from '../defaults';
/* Export notification container */
export default class extends React.Component {
static propTypes = {
options: PropTypes.object
};
static defaultProps = {
options: {}
};
componentDidMount() {
mergeOptions(this.props.options);
}
render() {
return (
<div id={defaults.wrapperId}/>
);
}
}