react-toast-awesome
v1.1.0
Published
a Easy to Use React Component
Downloads
3
Maintainers
Readme
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>)