by Kaali · 10y ago · 0 comments
React is all the hype right now. And it is a nice system for creating dynamic single page apps. But there is little reason to use it for static websites, which could be cached easily, instead of rerendering the website on the client with Javascript. And instead of having automatically cached static website, we use local storage and such to get something resembling a cache.
I would love to see some mechanical sympathy in modern web development, instead of cargo culting all the new tech.
[1] http://facebook.github.io/react-native/
[2] https://github.com/facebook/react-native/blob/master/website...
The chain of build steps is quite complex though... but hey, if it works...
For example my blog: Most visitors read a single article and leave. Optimization: Serve page as one big blob if possible. Inline the CSS. Avoid images and widgets. Social buttons are implemented as CSS-styled links without Javascript-iframe-img stuff.
React is old school, the cool kids use VueJS nowadays.