chinedufn / percy

Build frontend browser apps with Rust + WebAssembly. Supports server side rendering.
https://chinedufn.github.io/percy/
Apache License 2.0
2.25k stars 84 forks source link

Implement on_remove_element #163

Closed chinedufn closed 2 years ago

chinedufn commented 2 years ago

This commit introduces the ability to set a function to be called when an element is removed from the DOM.

It also adds convenience ways to set on_create_element and on_remove_element using the html! macro.