Hacker News new | past | comments | ask | show | jobs | submit | captnasia's comments login

there's a few attempts, templ[0], gomponents[1]. Not for cli apps per se but for web dev.

0: https://github.com/a-h/templ 1: https://github.com/maragudk/gomponents


I've seen gomponents, but it seems very verbose. Although I guess that's what you're stuck with if you're doing it within Go.


If you go to the Portals documentation ( https://facebook.github.io/react/docs/portals.html ) you can find some examples throughout.


Both of the CodePen example links on that page are insidiously broken. The demos appear to work, but they don't actually demonstrate the claimed portal functionality at all:

    // These two containers are siblings in the DOM
    const appContainer = document.getElementById('app-container');
    const modalContainer = document.getElementById('app-container');
Note that both variables refer to the same element.


Sorry, there was so much to do in the release that some issues crept into the new docs. We'll fix them soon. :-)


Fixed now! Thanks for the bug report!


No problem! And on re-reading my comment, I probably shouldn't have used the word "insidiously", it came off a lot more negative than I intended. Thanks for the quick fix.


> Most people don't wear watches and it's usualy considered rude to pull out your phone mid-convorsation. I always wear a watch and so people just say "do you have the time"?

> If you can't ask Siri you can just ask whoever you're talking to. Also, if you express you want to know the time and they say "I don't know" you can then just ask Siri and tell them. It works out nicely.

The point is that people _can_ look at their watch or smartphone while still listening in on the conversation. It's hard to hear and pay attention to two different things at the same time.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: