MithrilJS / mithril-node-render

Use mithril views to render server side
MIT License
210 stars 44 forks source link

Make class component check better match how Mithril does it #77

Closed bdchauvette closed 7 years ago

bdchauvette commented 7 years ago

Make the new isClass function match how Mithril itself checks for class components: i.e. classes don't have to actually use class syntax, they just need to be functions that have a view method on their prototype. This would simplify the check, and prevent possible incompatibilities between mithril and mithril-node-render.