Yeah, it’s pushed here and there. Personally, I don’t know why. To me, the concept sounds a bit like a blast from the past. In the early jQuery-era, people added interaction capabilities to every element imaginable - with bad consequences. In addition, sending html fragments was a part of the early steps of JS rendering engines and their interactions with servers of the time.
Hopefully, this becomes adopted in other browsers as well since nowadays it requires some JavaScript work to conditionally add different classes based on DOM structure.
What’s the point of this article? Why it even mentions React? It’s more about how well built JS works on browsers. It would be more honest to advertise the tool without this clickbait title.
[comment deleted]Gnito 1070 days ago. link 1 point ▲▼
JSON.stringify doesn’t return string when the content is not JSON. What a surprise…