Bloomca / veles

UI library with main focus on performance
https://bloomca.github.io/veles/
MIT License
40 stars 0 forks source link

Automatically register a returned function from `onMount` as `onUnmount` callback #30

Closed Bloomca closed 1 month ago

Bloomca commented 1 month ago

It is a bit awkward to create both onMount and onUnmount, and then save a reference in a closure. I think the interface would be both more intuitive and also less verbose, and it follows the suite how React works, for example.