4 ms·
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 cal
by awful_waffle 6y ago
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.
- r0rshrk 6y agoMost 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.
- developit 6y agoWe 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.