Avoid writing boilerplate! Create new TypeScript React components via the command line.
npm i -g new-tsx
to install as a global command line tool.
new-tsx MyNewComponent
Creates a file at ./src/components/MyNewComponent.tsx
with the boilerplate for a new React component class inside.