top | item 41661942

(no title)

jwngr | 1 year ago

I felt the same way! But I came around. Take a look at the source code for a component [1]. The .astro format is pretty much just TS, CSS, and HTML. I don't even need React anymore. Way less glue code and dependencies than with Gatsby. There is a configuration file and some abstractions for things like collections, but almost everything is opt-in.

[1] https://github.com/jwngr/jwn.gr/blob/master/src/components/b...

discuss

order

dimitrisnl|1 year ago

It looks great, but that's a DSL I must learn and re-use nowhere else.

cpursley|1 year ago

There's not really any DSL. You just put some TS in the frontmatter for fetching/transforming at build time, TS in a script tab (if needed) and the html is just basic templating that takes props.