Also curious.. Wwat would you miss from React if you only used hyperapp?
HN user
lukejacksonn
Front end developer from the UK. A passion for good design and ux. Advocating work smart not hard.
We have something like this for hyperapp (https://github.com/hyperapp/html). The aim of this variant was to experiment to see wether it is feasible to rid of view dependencies (either `h` or precompiled tags like `h1` etc.)
Cool implementation. What is JSON about it though? What made you decide to pass children before props?
Haha! The main advantage I see in a syntax like this (as supposed to h by hyperapp for example) is.. not having to write `h` all the time, that and optional props.
I have been thinking of adding shorthand for id/classes in the tag name like hyperscript or JSnoX.
That would mean you could write `['input#search.large']`
We already have something similar to this at hyperapp.. it is https://github.com/hyperapp/html. But yes, as mentioned by @masklinn, the drawback is you then have to define every element and then import all those definitions. With ijk you can write dependency free views (no import of h or h1, h2, etc.)
I got it working with preact.. didn't try with react!
I like to write my apps with one language where possible. I find the switch in context to much of an overhead.. but I am aware this is personal preference. Use what makes you happy :) it all gets compiled to vdom trees anyway!
I have made a few simple sites with hyperapp in its various stages of development. I am not advocating that any of these projects represent the _proper_ way to build a hyperapp (or a web app in general for that matter, I am learning too) but they are hyperapps.. in production!
Site: https://audiostream.world Repo: https://github.com/joextodd/audiostream
Site: https://browses.io Repo: https://github.com/browses/frontend
Site: https://plural.video Repo: https://github.com/lukejacksonn/plural
Site: https://hyperapp-hn.deployable.site Repo: https://github.com/lukejacksonn/hyperapp-hn
There is also https://github.com/hyperapp/awesome-hyperapp which is full of much community goodness.
Hope that helps! Join us on slack if you have questions :]
any issues?
This is awesome.. and it is the way forward if every device can just run a browser then what is the need for an OS, you can port anything straight to the browser.
With the likes of HTML5, jQuery, WebGL, AWS everyone could be making their own OS on the web.
It is really not that hard or revolutionary it's just using existing services effectively.. Let's carry on this way.
+rep for mozilla (gone up in my estimates)
Socialist or Libertarian we should just look at the point being made..
Developers don't HAVE to develop for any specific platform. Corporations don't HAVE to distribute software they don't want.
If you want your applications to be truly 'open' then develop them for the web and don't append a licence.
The reason people are developing for platforms like iOS, is because companies like Apple provide an easy entrance to a massive market. If you want to tread on their turf, you have to play by their rules. And that is fair enough.
If the big corporations are really getting it wrong, then users and developers alike will eventually abandon their platforms for a better one; and life goes on.
If we want to make a change.. then manufacture better espresso machines, design more appealing pods or grow better beans.