jQuery plugin Reactive state No build step

reQuery

A small jQuery plugin that adds reactive state and declarative DOM binding without a virtual DOM, component model, or build pipeline.

Some jQuery projects need state, not a rewrite.

In many older or CMS-driven projects, the cost of moving to a full SPA framework is not justified. But manual DOM synchronization still becomes brittle when the UI depends on several values.

reQuery gives that code a small reactive layer while keeping the jQuery mental model. State is the source of truth, and DOM bindings update when state changes.

Binding model

Declarative DOM updates without components.

Reactive state

Set values through reQuery state and let bound DOM nodes update from that source.

data-rq-* bindings

Bind text, HTML, attributes, classes, values, and visibility from markup.

jQuery conventions

The API keeps familiar chaining patterns instead of introducing a new component runtime.

Plugin extension

$.reQuery.use(fn) lets advanced behavior hook into the update pipeline.

The common DOM sync jobs are covered.

Binding Behavior
data-rq-text Writes state into text content.
data-rq-html Writes state into HTML content when that is intentional.
data-rq-show Toggles display based on truthiness.
data-rq-class Adds or removes a class from state.
data-rq-value Keeps form values connected to state.

A bridge for legacy and enhancement work.

reQuery is useful for WordPress themes, CMS templates, embedded widgets, admin screens, and jQuery-heavy codebases where a full framework migration is not the work at hand.

It is not meant for greenfield SPA development. Vue, React, or Svelte are better choices when a component app is the goal from the start.

Related paths.