@tiddo/on-insert

1.0.1 • Public • Published

Module to detect insertion of DOM elements.

Usage

import onInsert from 'on-insert';

onInsert(`my-component`, (el) => {
	console.log("Insert new my-component:", el);
});

Browser support:

Any browser that supports keyframes:

  • Chrome >= 4.0
  • IE >= 10
  • Firefox >= 5.0
  • Safari >= 4.0
  • Opera >= 12.1

Dependents (0)

Package Sidebar

Install

npm i @tiddo/on-insert

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • tiddo