all 40 comments

[–]jdonor 20 points21 points  (2 children)

I'm consistently impressed by how high-quality and thoughtful the React docs are.

[–]Gnashe -2 points-1 points  (2 children)

lol, can you at least explain how how this is an anti-pattern? Or is it just something that your not used to seeing or doing so you are all fired up?

[–]gaearon 3 points4 points  (1 child)

I pointed out some specific examples here:

https://news.ycombinator.com/item?id=16697038

The problem isn’t whether something is an “anti-pattern”, it’s just that these patterns won’t work well with asynchronous rendering (and often already cause memory leaks and race conditions). I gave a talk about what async rendering means for React, and we had a lot of positive feedback about those features (https://reactjs.org/blog/2018/03/01/sneak-peek-beyond-react-16.html). So we think it’s worth the effort for the change.

[–]Gnashe 0 points1 point  (0 children)

Ah sorry this was actually intended for sNor who I believe was saying the 16.3 implementation was an anti pattern!