gomponents

View components in pure Go, that render to HTML 5. (by maragudk)

Gomponents Alternatives

Similar projects and alternatives to gomponents

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better gomponents alternative or higher similarity.

gomponents reviews and mentions

Posts with mentions or reviews of gomponents. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-10.
  • Templ: A language for writing HTML user interfaces in Go
    14 projects | news.ycombinator.com | 10 Dec 2023
    I'm really happy you like it. :) And thank you for your comment, I really appreciate newcomer viewpoints especially.

    Have a look at the `Classes` helper component already available: https://github.com/maragudk/gomponents/blob/main/components/...

    Yeah, I'm not a total fan of the runtime panics, but it was a tradeoff where I chose in favour of API simplicity and readability. In practice, it works out well, because you catch any typos at development time.

    I've had elements and attributes in separate packages before, but then you can't dot-import both packages and not have name clashes, and have to either prefix elements or attributes with the package name, which makes the code much less readable. Again, a tradeoff. :)

  • Template Engine Recommendation
    2 projects | /r/golang | 12 Oct 2023
    Gomponents:
  • HTML Templates | Why would you use them over react?
    8 projects | /r/golang | 16 Apr 2023
    I now always use https://github.com/maragudk/gomponents for frontend components (I'm the author of that library) together with HTMX (https://github.com/maragudk/gomponents-htmx), and it's just so much more fun and fast to work with.
  • How to render html children inside nested templates
    1 project | /r/golang | 2 Mar 2022
    However, there is an alternative to achieve React-ish components in Go using this package: https://github.com/maragudk/gomponents
  • Daz: Composable HTML components in golang
    4 projects | /r/golang | 22 Mar 2021
    reminds me of https://github.com/maragudk/gomponents
  • How painful is SSR with Go, really?
    2 projects | /r/golang | 19 Mar 2021
    I’ve also started just rendering views from the Go backend. It’s so nice and simple when you don’t need an SPA (like in your case). I didn’t like the syntax of html/template though, so I started a small view component library. Maybe it would be useful to you too, wrote about it here: https://www.maragu.dk/blog/gomponents-declarative-view-components-in-go/
  • How I build web frontends in Go
    8 projects | /r/golang | 7 Mar 2021
    Are you speaking of something like: gomponents? I can see what it has to offer. I tried it for half an hour but did not feel that well about it.
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 19 Apr 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Stats

Basic gomponents repo stats
8
701
6.0
about 1 month ago

maragudk/gomponents is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of gomponents is Go.

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com