Happy to announce that Rum 0.11.5 has been released with quite a few bug fixes and new features.
For anyone excited about this, now you can use React Hooks in Rum. Hooks work only in function-based React components, but because Rum already generates those when using defc
macro it was trivial to add support for them without breaking changes.
Hooks are compatible only with defc
components and only without any mixins, except rum/static
. This distinction exists because mixins are meant to be used in lifecycle methods of React's class-based components. You should be using either mixins or hooks in a single component, mixing those together would generate class-based components and hooks won't work.
Another important note is that Clojure's equality semantics does not apply to dependencies collection is Hooks, at least as of now. Instead React compares them by identity as usual in JavaScript. For Rum users this means that values in d