Seamless integration with Node.js and legacy environments
require('@uhd_kr/vanilla-state').
// CommonJS Import
const VnlState = require('@uhd_kr/vanilla-state');
const count = new VnlState(0);
count.addEventListener('change', (value) => {
console.log('Count:', value);
});
count.set(5); // Basic usage
count.set(10, { notify: false }); // Silent
require() basedimport based```