react-whatsapp
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

React Whatsapp

npm versionLicense: MITBuild StatusNetlify Status

React component for whatsapp click to chat

Installation

npm i react-whatsapp
// OR
yarn add react-whatsapp

Demo Link

Local demo:

git clone https://github.com/andrelmlins/react-whatsapp.git
cd react-whatsapp
npm install && npm run start

Examples

import React from 'react';
import { render } from 'react-dom';
import ReactWhatsapp from 'react-whatsapp';

const App = () => (
  <ReactWhatsapp number="1-212-736-5000" message="Hello World!!!" />
);

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

Properties

Prop Default Type Description
number -- string Phone number
message -- string Message for chat
element button element Either a string to use a HTML element or a component.

NPM Statistics

Download stats for this NPM package

NPM

License

React Whatsapp is open source software licensed as MIT.

Package Sidebar

Install

npm i react-whatsapp

Weekly Downloads

534

Version

0.3.0

License

MIT

Unpacked Size

9.67 kB

Total Files

7

Last publish

Collaborators

  • andrelmlins