
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
react-notification
Advanced tools
This is a component designed to provide "snackbar" notification messages.
Warning: this is a major version zero release. The component is still under development and the API may change at any time. Please report issues and bugs on GitHub.
npm install react-notification
var Notification = require('react-notification');
<Notfication
message={string}
action={string}
onClick={func}
/>
Name | Type | Description |
---|---|---|
message | string | The message for the notification |
action | string | The name of the action, e.g., "close" or "undo" |
Method | Usage | |
---|---|---|
show | Notification.show() | Opens the notification. |
hide | Notification.hide() | Hides the notifciation. |
Event | Description |
---|---|
onClick | Fuction runs on change |
As this component does not include CSS styles to use, you will need to add your own styles. The DOM tree of the component is included below for reference.
<div class="notficiation-bar">
<div class="notfication-bar-wrapper" onClick={this.props.onClick}>
<span class="notfication-bar-message">{this.props.message}</span>
<span class="notification-bar-action">{this.props.action}</span>
</div>
</div>
Built with care in New Orleans by Patrick Burtchaell.
Copyright 2014 Patrick Burtchaell. Licensed MIT.
FAQs
Snackbar notifications for React
The npm package react-notification receives a total of 3,027 weekly downloads. As such, react-notification popularity was classified as popular.
We found that react-notification demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.