Menu

Your static site probably doesn’t need React
📰

Your static site probably doesn’t need React

DEV Community: react·Akintayo Akinnibosun·3 days ago
#JaPKhUit
#devtoreact#devto#dev#react#astro
Reading 0:00
15s threshold

About a year ago, when I was a fledgling frontend developer, I created a website with React. This website was a single page app built with Vite and React, and it used all the cutting edge bells and whistles but had only one problem: it wasn’t performant. On mobile, the main content took 11.3 seconds to show up; after I rebuilt it in Astro, it took 2.1.

Evaluating this site a year ago, it was simple to see the pitfalls I fell into: a lot of images were uncompressed, and I was shipping way more than necessary to the client. It got me thinking however, though a lot of these mistakes were my fault, wouldn’t it be nice if there was a framework that blocked a lot of these mistakes by default? Something like… Astro?

For those that may not be familiar, Astro is a frontend framework that by default, ships no JavaScript to the client. It’s based on default web technologies i.e HTML and CSS. Because of this, it’s extremely performant.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.