barneycarroll / mithril-machine-tools

Putting the hype back in hyperscript, the OM back in virtual DOM; A bag of tricks for Mithril.
MIT License
30 stars 3 forks source link

Should inline support POJO's? #16

Closed JAForbes closed 3 years ago

JAForbes commented 5 years ago

In the mithril docs we've decided that pojo's should only be used for stateless components, closures for stateful.

Seeing as the justification for Inline is to have some state inline. It seems we could take that as an opportunity to only support closures.

What do you think?

barneycarroll commented 3 years ago

This thing consciously perpetuates bad ideas along with good. Class definition is left out because there’s literally no point, the rest is a series of footguns I’m happy to autopsy.