News for hackers. Stuff that matters.
Re:A Go Package for Building Progressive Web Apps by habibur on Friday September 17, 2021 @10:04AM (#28565609)

  func (h *hello) Render() app.UI {
   return app.H1().Text("Hello World!")
  }
Using a template would have been easier and more clear.
Re:A Go Package for Building Progressive Web Apps by Maxence on Friday September 17, 2021 @02:46PM (#28569393)
Hi, go-app’s creator here.

I did it in previous version and since there is no code check/lint on HTML templates within strings, debugging HTML was a pain in the ass.

More clear is a matter of taste and you can do pretty clear code with this syntax.

Re:A Go Package for Building Progressive Web Apps by wingi on Friday September 17, 2021 @10:08AM (#28565658)
Checkout hyperapp - same design, but pure javascript.