This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

tawkto-react

3.0.1 • Public • Published

tawkto-react

A simple wrapper around tawk.to JS API to help integrate chat into any application that is based on the react framework

Installation

npm install tawkto-react --save

Usage

This package is simple react wrapper around the tawk.to JS API. Explore the Tawk JS API as you wish.

Please consider migrating to the latest version and fetch the propertyId and tawkId from your account

Screenshot

class component

import TawkTo from 'tawkto-react'

componentDidMount()
{
    var tawk = new TawkTo(propertyId, tawkId)

    tawk.hideWidget()
}

functional component

import TawkTo from 'tawkto-react'

useEffect(() => {
    
    var tawk = new TawkTo(propertyId, tawkId)

    tawk.onStatusChange((status) => 
    {
        // console.log(status)
    })

}, [])

License

MIT

Authors

  • Steve Junior

Dependencies (0)

    Dev Dependencies (9)

    Package Sidebar

    Install

    npm i tawkto-react

    Weekly Downloads

    1,111

    Version

    3.0.1

    License

    ISC

    Unpacked Size

    396 kB

    Total Files

    7

    Last publish

    Collaborators

    • steve_junior