Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 368 Bytes

Alert.md

File metadata and controls

16 lines (10 loc) · 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.