News for hackers. Stuff that matters.
Re:Preact: Fast 3kb React Alternative with the Same API, Com... by awful_waffle on Saturday December 12, 2020 @10:35AM (#25398834)
I reached for Preact on a project and was very satisfied with it. Until, that is, I hit a bug where DOM elements would be rendered out of order when I would call setState. I replaced Preact with React and everything worked fine. The logic was fairly straightforward as well - I was not doing anything fancy.

Preact is great but be prepared for anomalies like mine.

Re:Preact: Fast 3kb React Alternative with the Same API, Com... by developit on Sunday December 13, 2020 @02:54PM (#25409567)
We are working on a new renderer that started out life as a way of addressing the specific corner cases that can lead to this. It will be released in early 2021.
Re:Preact: Fast 3kb React Alternative with the Same API, Com... by r0rshrk on Sunday December 13, 2020 @12:12AM (#25404473)
Most probably this would be something to do with the key prop. Or how conditional components are being rendered. I can't make any judgements without seeing the final code though.