News for hackers. Stuff that matters.
Re:Why I don't miss React: a story about using the platform by Jcampuzano2 on Wednesday May 04, 2022 @08:10AM (#31259375)
But it doesn't do this is my whole point. React will not blow away the entire DOM in the document even if props change.

It will correctly keep your scroll position, caret position, etc. if you use React the way it's intended to be used, which is very easy to do and learn. Of course if you use the `key` prop to blow away the entire DOM with every change all these benefits are lost, but thats not react's fault, its your own.

There are no comments on this comment yet.