
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
react-hook-notification
Advanced tools
Add notifications in your React app. Types: success, error, warning, info or default
Add notifications in your React app. Types: success, error, warning, info or default
https://reverent-lalande-5e2160.netlify.app
npm install react-hook-notification
or
yarn add react-hook-notification
import React from 'react';
import { useNotification } from 'react-hook-notification';
export default function Component() {
const notification = useNotification();
return (
<button
type="button"
onClick={() =>
notification.success({
text: 'Notification test',
})
}
>
Dispatch
</button>
);
}
Property | Type | Required | Default | Description |
---|---|---|---|---|
text | string | yes | Notification text | |
title | string | no | Notification title | |
position | top-right | top-center | top-left | bottom-right | bottom-center | bottom-left | no | top-right | Notification position |
theme | colored | light | dark | no | colored | Notification theme |
transition | bounce | flip | fade | slide | zoom | no | bounce | Notification transition |
delay | number | no | 5000 | Notification delay in milliseconds |
showProgressBar | boolean | no | true | Notification shows or hides progress bar |
showButtonClose | boolean | no | true | Notification show or hide close button |
closeOnClick | boolean | no | true | Notification closes on click |
showIcon | boolean | no | true | Notification show or hide icon |
autoClose | boolean | no | true | Automatic closing of the notification after the delay ends |
This project is licensed under the MIT License.
Development by: André Coelho
FAQs
Add notifications in your React app. Types: success, error, warning, info or default
The npm package react-hook-notification receives a total of 30 weekly downloads. As such, react-hook-notification popularity was classified as not popular.
We found that react-hook-notification demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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 uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.