Permalink
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (10 sloc) 368 Bytes

<Alert>

Uses Window.alert() to display message to a user.

Usage

import {Alert} from 'libreact/lib/Alert';

<Alert show text='Hello world' />

Props

  • show - boolean, optional, whether to show the alert.
  • text - string, require, string message to display to the user.