It really should have Typescript as well (optionally, that is)
An official "Using React with Typescript" doc that shows good patterns for typing props and state would be nice though.
https://react-typescript-cheatsheet.netlify.app/
But yes, I'd love to have some of this info added to the official docs as well.
As an FYI for later reference, Lenz Weber has a Remark plugin that compiles TS to JS in code samples - we use that in the Redux Toolkit docs. I think Orta Therox may have something similar going on with his "Shiki Twoslash" tooling, but not entirely sure.