Home
Hidayt Rahman edited this page Jun 28, 2021
·
11 revisions
A lightweight library for DOM manipulation on the modern browser using plain javascript.
npm install hotdom --save
Yarn
yarn add hotdom
import dom from 'hotdom';
let el = dom.selectById(id);
dom.addClass(el, "first-class")
Select dom with the help of methods
select()
, selectById()
, selectByClass()
Get all attributes
Add, remove and hasClass
Hide and show selected elements.
Select relational DOM next()
, prev()
, parent()
, firstChild()
Load script file dynamically loadScript()
, get query params value getUrlParameter()
, convert array to object convertArrToObj()
Made with ❤️ in India