Smoking hot React Notifications

Smoking hot Notifications for React.

Lightweight, customizable and beautiful by default.

Website Documentation Twitter

Features

  • πŸ”₯ Hot by default
  • πŸ”© Easily Customizable
  • ⏳ Promise API - Automatic loader from a promise
  • πŸ•Š Lightweight - less than 5kb including styles
  • βœ… Accessible
  • 🀯 Headless Hooks - Create your own with useToaster()

Installation

With yarn
yarn add react-hot-toast
With NPM
npm install react-hot-toast

Getting Started

Add the Toaster to your app first. It will take care of rendering all notifications emitted. Now you can trigger toast() from anywhere!

import toast, { Toaster } from 'react-hot-toast';

const notify = () => toast('Here is your toast.');

const App = () => {
  return (
    <div>
      <button onClick={notify}>Make me a toast</button>
      <Toaster />
    </div>
  );
};

Documentation

Find the full API reference on official documentation.

Credits

react-hot-toast was cooked by Timo Lins πŸ‘¨β€πŸ³

Download Details:

Author: timolins

Demo: https://react-hot-toast.com/

Source Code: https://github.com/timolins/react-hot-toast

#react #reactjs #javascript

Smoking hot React Notifications
9.35 GEEK