Re:Show HN: I made React with a faster Virtual DOM
by Vinnl on Wednesday June 01, 2022 @05:45AM
(#31579797)
Probably not too relevant/helpful anymore, but the problem might be that React components don't return HTML: they're functions that return a collection of JS objects that describe what the DOM ("HTML") should look like, and React compares that to what the DOM actually looks like and applies the relevant changes. These functions get called every time something changes. Having that mental model is vital for React "clicking".
[ Parent
| on HN ]
There are no comments on this comment yet.