🚀 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

## Introduction React Notify is a lightweight, customizable notification library for React applications. It provides an easy way to manage and display notifications within your React application. Utilizing a context provider, React Notify allows for seaml

0.0.3
Source
npm
Version published
Weekly downloads
289
-50.93%
Maintainers
1
Weekly downloads
 
Created
Source

React Notify

Introduction

React Notify is a lightweight, customizable notification library for React applications. It provides an easy way to manage and display notifications within your React application. Utilizing a context provider, React Notify allows for seamless integration and control over how and where your notifications appear on the screen.

Installation

Install React Notify using npm or yarn:

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

Use

import { useNotify, NotifyContainers } from 'react-simple-notify'
import type { NotifyAlignment, NotifyRenderArgs } from 'react-simple-notify'
import 'react-notify/dist/style.css'

export const App = () => {
  const { notify } =  useNotify()
    
  const handleOpen = () => {
    notify.open({
      index: 'notify',
      alignment: NotifyAlignment.bottomLeft,
      duration: 4500,
      render: () => <h1>Hello react-notify 🔥</h1>,
    })
  }  
    
  return (
    <>
      <button onClick={}></button>
      <NotifyContainers />
    </>
  )
}

Keywords

react

FAQs

Package last updated on 01 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