My experience has taught me that when developers consistently use your tools “wrong”, it’s a sign that the tools themselves are the problem. The use cases described in this document outline common needs that shouldn’t be so easy to get wrong. It reads like a call to action for an expansion and rethinking React’s public interface via new hooks or utility functions. You can’t always document the pain away. I’m not a React maintainer so I don’t know how easy or possible this is, but considering all the fantastic things the team has done, there’s no way that this is their best.
To paraphrase an old quote, “If you see bad code with your utility all day, perhaps your utility is the bad code.”
To paraphrase an old quote, “If you see bad code with your utility all day, perhaps your utility is the bad code.”