News for hackers. Stuff that matters.
Re:Web scraping via JavaScript runtime heap snapshots by jchw on Friday April 29, 2022 @05:21PM (#31210708)
React doesn’t do that. You may still find gibberish on hostile sites like Twitter which intentionally obfuscate class names, using something like React Armor.
Re:Web scraping via JavaScript runtime heap snapshots by DylanSp on Friday April 29, 2022 @09:13PM (#31212453)
React by itself doesn't do that, but CSS-in-JS libraries are fairly common in the React ecosystem, and most of them have random autogenerated class names.
Re:Web scraping via JavaScript runtime heap snapshots by jchw on Saturday April 30, 2022 @12:51AM (#31213434)
Even though this is a good point, I am somewhat disappointed that people downvoted a trivially correct statement. React is arguably the most popular web framework and it definitely doesn’t do this, nor does anything about it make it especially make sense to do this. Not every React app uses styled components or a CSS in JS solution at all. Arguably, a fair bit don’t. Anything using Blueprint doesn’t entirely use CSS in JS.