0.1.1 • Published 4 years ago

react-sms77 v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Sms77.io Logo

Installation

npm install react-sms77

or

yarn add react-sms77

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import Sms77 from 'react-sms77';

ReactDOM.render(
    <Sms77 
        apiKey='MY_SUPER_SECRET_API_KEY_FROM_SMS77IO' 
        to='+4901234567890' />,
    document.getElementById('root')
);

Props

apiKey: string = ''

to: string = ''

If you don't set an API key, you will get prompted to do so after typing in your message in the textarea. The same goes for the "to" prop which defines the recipient of the sent message.