
Security News
pnpm 10.12 Introduces Global Virtual Store and Expanded Version Catalogs
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
reactjs-push-notification
Advanced tools
A solution for pushing browser web notification! reactjs-push-notification
is an npm package that allows you to push notifications to the browser. It can be used with both Next.js and React.js. The package is easy to use and provides a variety of customization options.
$ npm install reactjs-push-notification
import { pushNotification, NotificationPrompt } from "reactjs-push-notification";
const Push = () => {
const buttonClick = () => {
pushNotification({
title: "Warning",
subtitle: "This is a subtitle!",
message: "This is a long message!"
});
};
return (
<div className="page">
<NotificationPrompt />
<button onClick={buttonClick} className="button">
Push Notifications
</button>
</div>
);
};
export default Push;
Name | Is Required | Default |
---|---|---|
title | Required (String) | Notification Title |
subtitle | Optional (String) | Notification Subtitle |
message | Optional (String) | Notification Message Body |
onClick | Optional (Function) | |
duration | Optional (Number) | Notification Duration Time |
FAQs
A solution for pushing browser web notification!
The npm package reactjs-push-notification receives a total of 1 weekly downloads. As such, reactjs-push-notification popularity was classified as not popular.
We found that reactjs-push-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.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
Security News
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.