@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

Readme

Keywords

none

Package Sidebar

Install

npm i @tiddo/on-insert

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • tiddo