react-use-tawk

1.0.0 • Public • Published

React Use Tawk

react integration for tawk.to

Tawk.to is a Web Chat platform that allows site users to communicate instantly with your business.

Installation

    /~$ npm install react-use-tawk

Usage

react-use-tawk should be used outside react hooks

this also works for Next.js

    import React from "react";
    import reactUseTawk from "react-use-tawk";

    const tawk_url = process.env.TAWK_URL;

    function App({props}) {

        reactUseTawk(tawk_url);

        return (
            <div>
            // code goes here
            </div>
        );

    }

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i react-use-tawk

      Weekly Downloads

      1

      Version

      1.0.0

      License

      ISC

      Unpacked Size

      1.77 kB

      Total Files

      3

      Last publish

      Collaborators

      • vwedesam