Hacker News new | ask | show | jobs
by robertoandred 229 days ago
A single picture is going to be more than 100kb.

Meanwhile, there simply aren’t web standards that match React’s capabilities.

2 comments

Pictures get encoded and decoded by browsers much much faster than the ability to parse then execute javascript.
You don’t need to know how JPEG or AVIF work internally to use an <img> tag.

> Meanwhile, there simply aren’t web standards that match React’s capabilities.

This isn't true for much of the web but it’s more deeply missing the point: if you’re building a web app, you need to learn the web APIs because those are what all web apps actually use. Adding intermediaries means that you have more things to learn, troubleshoot, and optimize. React’s value comes from managing the complexity of the code you write, which can be a real benefit for some projects but it doesn’t remove the need for you to know how browsers work.