function useFemtState(initial) { const s = state(initial); useEffect(() => () => s.destroy && s.destroy(), []); return s; }
const count = state(0);
Example: focus-pulse behavior
// usage const input = document.querySelector('input'); focusPulse().attach(input); CSS:
// bindText attaches to an element and updates its text content bindText(document.querySelector('#count'), count);
const progress = state(0);
const t = transition(progress, { duration: 600, easing: 'easeOutQuad' });
thanks for this now we moved to https://showpm.com.co/ Thanks alot
ReplyDelete