Skip to content

Instantly share code, notes, and snippets.

@kofno
Created December 15, 2018 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kofno/7a2a4578bdd5847dc567eec1a4fbdb25 to your computer and use it in GitHub Desktop.
Save kofno/7a2a4578bdd5847dc567eec1a4fbdb25 to your computer and use it in GitHub Desktop.
Triggering Alerts
import alertsStore from '../alerts/store';
import { alert } from '../alerts/types';
alertsStore.push(alert("Those aren't valid credentials!", 'error'));
alertsStore.push(alert("You've successfully logged in", 'success'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment