Hans Raaf

Results 419 comments of Hans Raaf

I struggle to understand what problem this code is solving. Can you give an example?

Well, when I need to transfer data between components that are not directly connected, I just use global / package level variables. The framework we made has a shared state...

This would be probably just radio buttons for me. But to make them checkmarks, I would likely have the selected value in the component and map with all the possible...

@cxjava I am not sure what you mean. I share a "state" by using a global variable (usually in a special package) or use a reference to a value or...

You can only add a single component inside of body. So you could add `app.Div().Body(your elements)` in the first component that gets mounted through the route.

@amlwwalker We wrote an HTML to go-app code converter (others did too, our one is proprietary, sorry) and I still think that there should be a possibility to compile these...

@amlwwalker I think it was: https://github.com/pojntfx/html2goapp

We made a tool that generates go-app code and understands TailwindCSS with a live preview. But it is more for HTML-wizards, so you can quickly design some component using HTML...

> Did you do a big switch case - just so I know the route I am taking is correct? Kinda. We use `golang.org/x/net/html` for parsing and have a map...

I am not sure about it, but you may be able to add a second link containing the cross-origin by adding it as `h.RawHeaders`. Not sure about the placement, though....