Skip to content

A minimal reactive state system using JavaScript proxies. Supports nested object tracking and custom watchers.

Notifications You must be signed in to change notification settings

miracletim/reactive-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Reactive System with Watchers

A minimal reactive state system using JavaScript proxies. Supports nested object tracking and custom watchers.

Usage

const state = reactive({
  user: {
    profile: { name: "Miracle", age: 23 },
  },
});

watch("user.profile.name", (newValue) => {
  console.log("Name changed to:", newValue);
});

state.user.profile.name = "Kreativ";
state.user.profile = { name: "Zion" }; // Will also be watched!

About

A minimal reactive state system using JavaScript proxies. Supports nested object tracking and custom watchers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published