extension-link-enabler

1.0.0 • Public • Published

Extension-Link-Enabler

Enable links in your browser plugin, today! Compatible with most modern browsers.

Usage

For React Components

const linker = require('extension-link-enabler')

Component.prototype.componentDidMount = function () {
  var node = findDOMNode(this)
  linker.setupListener(node)
}

Component.prototype.componentWillUnmount = function () {
  var node = findDOMNode(this)
  linker.teardownListener(node)
}

Package Sidebar

Install

npm i extension-link-enabler

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • zanibas