🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

react-simple-notify

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-simple-notify

## [DEMO](http://rsn.gruffix.ru/)

0.0.12
Source
npm
Version published
Weekly downloads
347
-40.78%
Maintainers
1
Weekly downloads
 
Created
Source

Logo

React Simple Notify

DEMO

Installation

Install React Notify using npm or yarn:

npm install react-simple-notify
# or
yarn add react-simple-notify

Simple usage

import React from 'react';
import { useNotify, NotifyContainers } from 'react-simple-notify';

function App() {
  const { notify } = useNotify();

  const showNotification = () => {
    notify.open({
      render: ({ onClose }) => (
        <div>
          This is a notification!
          <button onClick={onClose}>Close</button>
        </div>
      ),
    });
  };

  return (
    <>
      <button onClick={showNotification}>Show Notification</button>
      <NotifyContainers />
    </>
  );
}

export default App;

Keywords

react

FAQs

Package last updated on 12 Mar 2024

Did you know?

Socket

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.

Install

Related posts