TypeScript supports JSX and can correctly model the patterns used in React codebases like useState
.
Getting Set Up With a React Project
Today there are many frameworks which support TypeScript out of the box:
All of these are great starting points. We use Gatsby with TypeScript for this website, so that can also be a useful reference implementation.
Documentation
Here are some of the best places to find up-to-date information on React and TypeScript: