Options
All
  • Public
  • Public/Protected
  • All
Menu

This React component displays notifications from Haskell. It will display messages from the "invalidInput" and "invalidMove" events, and from when Haskell is initialized.

It renders a div.notification-area that will contain one div.notification per message. Each message will remain for 5 seconds.

Hierarchy

  • Component<{}, State>
    • NotificationArea

Index

Methods

sendNotification

  • sendNotification(message: string): void
  • Use this method to display notifications with custom messages.

    Parameters

    • message: string

      The message to display.

    Returns void

Generated using TypeDoc