You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add jsxDomAttributeHook and jsxDomChildrenHook for reactive attribute and child updates
- Introduced `jsxDomAttributeHook` to intercept attribute assignment and enable reactive updates.
- Added `jsxDomChildrenHook` to allow dynamic replacement of child elements using custom logic.
- These hooks are designed to integrate seamlessly with reactive libraries like Preact Signals.
- Ensured backward compatibility by making the hooks opt-in.
- Added tests to validate the functionality of the hooks in various scenarios.
This feature enhances the flexibility of `jsx-dom` by enabling developers to implement reactive DOM updates with minimal effort.
0 commit comments