So I just learned that in @typescriptlang.org any JSX element is allowed arbitrary attributes as long as they contain a `-` 🤔
It's documented as an exemption for invalid JS identifiers (why?) but I checked the source and literally only checks for hyphens. Insane behaviour