Typing Function Components in React with TypeScript
One of TypeScript's biggest strengths is providing autocompletion and typechecking in IDEs. Properly typing components makes writing JSX a lot easier and can avoid many common errors. (updated to also include Preact!)