1.0.0 • Published 4 years ago
whatsapp-api-for-react v1.0.0
whatsapp-api-for-react
A HACKABLE REACT LIBRARY FOR OPENING WHATSAPP
Install
npm install --save whatsapp-api-for-react
Live Demo
https://kushad.github.io/whatsapp-api-for-react/ >
Usage
import React from 'react';
import { WhatsappButton } from 'whatsapp-api-for-react';
const App = () => {
return (
<>
<div
style={{
display: 'flex',
justifyContent: 'center',
flexDirection: 'column',
textAlign: 'center',
margin: '15px',
height: '85vh',
alignItems: 'center'
}}>
<h1>Whatsapp Api For React</h1>
<small style={{ margin: '15px' }}>
A Hackable React Library For Opening Whatsapp From Your Website
</small>
<h6>This Button Is The Default Button</h6>
<WhatsappButton />
<h6>This Button Is With The btnText Props</h6>
<WhatsappButton btnText='This Button Is With The btnText Props' />
</div>
</>
);
};
export default App;
License
MIT © KUSHAD
1.0.0
4 years ago