snackifyjs

A very easy to implement react snackBar notification

Usage no npm install needed!

<script type="module">
  import snackifyjs from 'https://cdn.skypack.dev/snackifyjs';
</script>

README

Installation

npm i snackifyjs

How to use ?

import Notify, { openNotification } from 'Notify';

Initiate Notify anywhere in your render

Call openNotification("Your notification text","notification type") when ever you want notification to appear

Example: openNotification("Something went wrong. Please try again later","error")

Aceeptable notification type:

  1. success
  2. error
  3. info
  4. warning