6 ms·
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 eve
by jwngr 2y 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/blog/BlogPostListItem.astro https://github.com/jwngr/jwn.gr/blob/master/src/components/b...
- dimitrisnl 2y agoIt looks great, but that's a DSL I must learn and re-use nowhere else.
- cpursley 2y agoThere'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.