Femtality- - -v0.16.1- By Aerisetta

React example (hooks wrapper):

// bindText attaches to an element and updates its text content bindText(document.querySelector('#count'), count); FEMTALITY- -v0.16.1- By Aerisetta

Example: focus-pulse behavior

function useFemtState(initial) { const s = state(initial); useEffect(() => () => s.destroy && s.destroy(), []); return s; } React example (hooks wrapper): // bindText attaches to

// bindStyle sets inline style properties reactively bindStyle(document.querySelector('.bar'), t => ({ width: `${progress.value}%` })); s.destroy && s.destroy()