DEV Community

Discussion on: Fast Pages with React

Collapse
 
florianrappl profile image
Florian Rappl

Sure. But that does not scale - even for a page of this simplicity. If you just look at the HTML unminified you see it's already quite lengthy.

The picture also does show why this is not only convenient, but actually very efficient. The CSS part would not scale, too. It would be a separate sheet (not good) that just contains everything unminified (not good). The approach shown here only takes what I actually use.

If you think this is "mit Kanonen auf Spatzen schießen" then I think you've not seen any pages with Next.js, Gatsby, or others.

Collapse
 
christiankozalla profile image
Christian Kozalla

True, compared to Next.js and Gatsby, this is a dream :D

Some comments have been hidden by the post's author - find out more