macrocomponent
Convenience wrapper around the nanocomponent DOM component library, for the most common case.
Example
Instead of this boilerplate-y thing:
const Component = const html = const morph = const inherits = inherits { Component thisfoo = null thisbar = null} Viewprototype { return statefoo !== thisfoo || statebar !== thisbar } Viewprototype { thisfoo = statefoo thisbar = statebar const el = html` Hey , how are you ing? ` if this_element else this_element = el return this_element}
You can now do this:
const component = const view =
..and it implements the same logic!
Installation
$ npm install macrocomponent
API
component(render)
License
MIT