react-toasting
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

React-Toasting

🎉 React-Toasting allows you to add notifications to your app with ease. No more nonsense!

Installation

$ npm install --save react-toasting
$ yarn add react-toasting

The gist

  import React from 'react';

  import { ToastContainer, toast } from 'react-toastify';
  
  function App(){
    const notify = () => toast({
		title: 'Title',
		message: 'Message',
		duration: 5000,
		type: 'success',
		textColor: '#0000',
		backgroundColor: '#FFFF',
	});

    return (
      <div>
        <button onClick={notify}>Notify!</button>
        <ToastContainer />
      </div>
    );
  }

Readme

Keywords

none

Package Sidebar

Install

npm i react-toasting

Weekly Downloads

3

Version

1.0.4

License

MIT

Unpacked Size

100 kB

Total Files

81

Last publish

Collaborators

  • renery