News for hackers. Stuff that matters.
Re:If Web Components are so great, why am I not using them? by _gabe_ on Thursday August 03, 2023 @09:26AM (#36985580)
Thanks for the info! This all makes sense to me intuitively, but I know I've been bitten in the butt several times by implementing clever caching schemes or something that end up slowing the app down more than I thought it would speed it up. It seems like it would be simple enough to set up a test case and benchmark this (you wrote a simple for loop above that should exhibit this behavior). I'm curious how much, if any, react actually ends up saving cycles when a programmer does the same code naively in react and naively in the browser. I think it would make for some interesting benchmarks at least :)

There are no comments on this comment yet.