New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

igroot-app-notify

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

igroot-app-notify

> 应用消息通知组件

latest
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

App Notify 组件

应用消息通知组件

使用说明

  • 该组件为函数调用,目的在于以后兼容非 React 项目;

代码演示

直接调用。

import React from 'react'
import { Button } from 'igroot'
import notify from 'igroot-app-notify'

notify({
  url: 'http://test.com',
  user: 100,
  app: 200
})

包裹组件用法。

import React from 'react'
import { Button } from 'igroot'
import notify from 'igroot-app-notify'

const notifyElement = notify({
  url: 'http://test.com',
  user: 100,
  app: 200
}, (
  <Button
    draggable
    shape="circle"
    type="primary"
    icon="sound"
  />
))

ReactDOM.render(notifyElement, mountNode)

Keywords

igroot

FAQs

Package last updated on 04 Jun 2019

Related posts