
Description
dom-helpers is a tiny, modular JavaScript library of DOM utilities, kept by the React Bootstrap project. It wraps common DOM tasks such as adding event listeners, reading computed styles, measuring offsets and scroll positions, and toggling classes, behind one consistent interface, so you don't have to rewrite the same browser checks in every project. It is mostly thin wrappers around browser inconsistencies, taken in part from jQuery, without the size of jQuery. Each helper can be imported on its own, so you only ship what you use. It expects a few ES5 features to be present.…
Highlights
- Small DOM utilities, imported one by one
- Events, styles, classes and measurements
- getComputedStyle polyfill
- Lighter than jQuery
Ratings & Reviews
No ratings yet
Be the first to rate dom-helpers.
People also visit

@storybook/addon-docs
Storybook Docs: Document UI components automatically with stories and MDX
dom-helpers FAQ
What is dom-helpers?
A small library of DOM utility functions such as on(), style helpers and class helpers, with one interface across browsers.
How is it different from jQuery?
It does much less: it smooths over common DOM inconsistencies without normalizing everything, so it is far smaller. For robust cross-browser behavior the README points to jQuery.
Can I import just one helper?
Yes, the library is modular, so you can import only the functions you need.
Who maintains dom-helpers?
The React Bootstrap project on GitHub.
Is it free?
Yes, it is open source.
What are the best dom-helpers alternatives?
Popular alternatives to dom-helpers include recharts, Base UI and react-markdown. See all dom-helpers alternatives

















