Skip to content

krvajal/use-intercom-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

useIntercom hook

minified license

A React Hook to add Intercom to your site

Installation

$ npm install use-intercom-hook

or

$ yarn add use-intercom-hook

Example Usage

import React from "react";
import ReactDOM from "react-dom";
import useIntercom from "use-intercom-hook";

const appId = "INSERT_YOUR_APP_ID";
function App() {
  useIntercom(appId);
  return <div>Hello there</div>;
}

const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);

View on CodeSandbox

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published