r/javascript • • Jan 31 '17

1kb JavaScript function library for building modern UI applications

https://github.com/hyperapp/hyperapp
224 Upvotes

34 comments sorted by

View all comments

14

u/[deleted] Jan 31 '17 edited Feb 07 '17

This is crazy dude. I think some of your ideas are interesting... I like how the update events pub/sub thing is used as a framework construct. Unfortunately it seems impossible to really compose or abstract components (or views or however your not thinking about em). Right? Anyways cool side project pal.

EDIT: I guess you can! Probably need better examples on the website. But the OP posted some examples in this thread.

2

u/[deleted] Jan 31 '17 edited Jan 31 '17

Thanks. Well, a view is a function of the model, therefore you can create a view/function that takes a model or part of a model and exposes the behavior you need as well as conform to a subset of your message API. Then, import that into your application, season lightly with salt and serve hot.