react-toast-awesome

1.1.0 • Public • Published

react-toast-awesome

Why

In react, If we want to use Toast, Firstly, We need to import a ReactElement in render function.
Actually, It's so complex.Now, You can use react-toast-awesome to your your code which you want to show toast.
PS:It's mounted in body of HTML

Install

npm install react-toast-awesome

Usage

import $message from 'react-toast-awesome';

$message.success(string:<message>);

Type

  • message.info(<string|ReactElement>)
  • message.success(<string|ReactElement>)
  • message.error(<string|ReactElement>)
  • message.warning(<string|ReactElement>)

Package Sidebar

Install

npm i react-toast-awesome

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

23.9 kB

Total Files

7

Last publish

Collaborators

  • abelmao