I’ve all the time like Jeremy’s categorization of developer instruments:
I’ve talked about two classes of instruments for internet growth. I nonetheless don’t know fairly what to name these classes. Inside and exterior? Developer-facing and user-facing?
It’s a great way to consider issues. There may be nuance although, naturally. Sass is the primary class since Sass by no means goes to customers, it solely makes CSS that goes to customers. However it will probably nonetheless have an effect on customers as a result of it may make CSS that’s bigger or smaller primarily based on how you utilize it.
I do know there are methods of getting React to behave extra like a class one device, however it’s most positively not the default behaviour. And default behaviour actually, actually issues. For React, the default behaviour is to imagine all of the code you write—and the device you utilize to put in writing it—can be despatched over the wire to finish customers.
I believe that’s truthful to say, however it additionally looks like the story is slowly beginning to change. I’d assume widespread utilization is much off, however Server Elements appear notable right here as a result of they’re coming from the React workforce itself, identical to SvelteKit is from the Svelte workforce itself.
And on Astro:[…] in contrast to Svelte, Astro lets you use the identical syntax because the incumbent, React. So should you’ve realized React—as a result of that’s what you wanted to study to get a job—you don’t must study a brand new syntax in an effort to use Astro.
I do know you in all probability can’t take an present React website and convert it to Astro with the flip of a swap, however not less than there’s a transparent improve path.
This isn’t simply theoretically true, it’s demonstrably true!
I assume which means Astro doesn’t change the classes—it’s a developer-facing device. It simply occurs to take what could be a user-facing device (even Svelte) and makes them nearly totally developer-facing.
And simply because I’ve had a few different Astro hyperlinks burning a gap in my pocket, Flavio has an excellent intro tutorial and right here’s Drew McLellan and Matthew Phillips chatting Astro on a latest Smashing Podcast.