# react-message-box

> React message box.

Latest version **1.0.6** (published 2017-01-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-message-box
pnpm add react-message-box
yarn add react-message-box
bun add react-message-box
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2017-01-06 |
| First published | 2017-01-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | fzuwwl |
| Maintainers | fzuwwl |
| Keywords | react, message, box |

## Links

- npm: https://www.npmjs.com/package/react-message-box
- Repository: https://github.com/kikimo/react-message-box
- Homepage: https://github.com/kikimo/react-message-box#readme
- Issues: https://github.com/kikimo/react-message-box/issues
- npm.io page: https://npm.io/package/react-message-box

## Dependencies (3)

- [react](https://npm.io/package/react.md) ^15.4.1
- [react-dom](https://npm.io/package/react-dom.md) ^15.4.1
- [react-bootstrap](https://npm.io/package/react-bootstrap.md) ^0.30.7

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.6 (latest) — 2017-01-06
- 1.0.5 — 2017-01-06
- 1.0.4 — 2017-01-06
- 1.0.3 — 2017-01-06
- 1.0.2 — 2017-01-05
- 1.0.1 — 2017-01-04
- 1.0.0 — 2017-01-04

## README

# react-message-box
[![npm version](https://badge.fury.io/js/react-message-box.svg)](https://badge.fury.io/js/react-message-box)
[![Build Status](https://travis-ci.org/kikimo/react-message-box.svg?branch=master)](https://travis-ci.org/kikimo/react-message-box)

React message box widget.

## Install

`npm install react-message-box --save`

## example

```js
import React from 'react'
import { render } from 'react-dom'
import {Modal, Button} from 'react-bootstrap'

import MessageBox from 'react-message-box'

import 'bootstrap/dist/css/bootstrap.css'

class App extends React.Component {
	showAlert() {
		this.refs.messageBox.alert("Alert", "This is alert!").ok(() => {
			console.log("Alert ok!");
		});
	}

	showConfirm() {
		this.refs.messageBox.confirm("Confirm", "This is confirm!").ok(() => {
			console.log("Confirm ok!");
		}).cancle(() => {
			console.log("Confirm cancle!");
		});
	}

	render() {
		return (
			<div>
				<Button onClick={this.showAlert.bind(this)}>Alert Box</Button>
				<Button onClick={this.showConfirm.bind(this)}>Confirm Box</Button>
				<MessageBox ref="messageBox"/>
			</div>
		);
	}
}

render(
  <App />,
  document.getElementById('root')
);
```

---
_Source: https://npm.io/package/react-message-box · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
