React通知
用于通知的React组件
安装
npm install --save react-notify-me
概述
用法
import { Notifications } from 'react-notify-me'
render ( ) {
return (
< div xss=removed>
{ this . props . children }
< Notifications xss=removed>
< / div >
)
}
import notify from 'react-notify-me'
componentDidMount ( ) {
notify ( {
content : 'C