mayu-live/framework

Stateless components

aalin opened this issue · 0 comments

aalin commented

Components that don't implement any callbacks don't have to be instantiated.

I think there is a type called LambdaComponent that we just need to check for somewhere in lib/mayu/vdom/vtree.rb or maybe we could do it in vnode.rb


Could maybe also not instantiate descriptors for text elements and comments...
Or maybe implement lighter descriptors for them since they don't have props, keys nor children...


It would be good to do #56 first