I came upon this revision history during some small amount of research if there was anything else missing from the question, like a React tag. From what I can tell, a non-OP person edited the question to include React or React-like code in the question, and left the edit summary on revision 2. However, their name was not recorded under the edit.
In case the question is deleted between now and later, here is the edit revision text:
OP's question was closed because it was unclear. I understand what he meant though. Edited it.
This revision was by the OP in question, which is what lead to my confusion of the origin of the revision.
If this is indeed a bug and not a one-off edge case, here's the report.