Hi Bjorn,
Thank you for bringing this up!
We modified this rule because it was raising too many questionable cases.
I can understand how this doesn’t work well in the example you give.
You are right, we have released new rules for React, and we have more in our short term plans.
I took note of the examples you gave
PS : We do user interviews where developers can talk to Sonar developers and product managers directly. This can be a chance to share your experience. Let me know if you’re interested!
Best,
Gabriel