--- id: setup title: Setup --- ## Prerequisites You can use this cheatsheet for reference at any skill level, but basic understanding of React and TypeScript is assumed. Here is a list of prerequisites: - Basic understanding of [React](https://react.dev/). - Familiarity with [TypeScript Basics](https://www.typescriptlang.org/docs/handbook/2/basic-types.html) and [Everyday Types](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html). In the cheatsheet we assume you are using the latest versions of React and TypeScript. ## React and TypeScript starter kits React has documentation for [how to start a new React project](https://react.dev/learn/start-a-new-react-project) with some of the most popular frameworks. Here's how to start them with TypeScript: - [Next.js](https://nextjs.org/docs/basic-features/typescript): `npx create-next-app@latest --ts` - [Remix](https://remix.run/docs/tutorials/blog): `npx create-remix@latest` - [Gatsby](https://www.gatsbyjs.com/docs/how-to/custom-configuration/typescript/): `npm init gatsby --ts` - [Expo](https://docs.expo.dev/guides/typescript/): `npx create-expo-app -t with-typescript` ## Try React and TypeScript online There are some tools that let you run React and TypeScript online, which can be helpful for debugging or making sharable reproductions. - [TypeScript playground](https://www.typescriptlang.org/play?target=8&jsx=4#code/JYWwDg9gTgLgBAbzgVwM4FMDKMCGN0A0KGAogGZnoDG8AvnGVBCHAORTo42sDcAsAChB6AB6RYcKhAB2qeAGEIyafihwAvHAAUASg0A+RILiSZcuAG0pymEQwxFNgLobiWXPi0AGHfyECTNHRyShotXQMjAJM4ABMIKmQQdBUAOhhgGAAbdFcAAwBNJUks4CoAa3RYuAASBGsVegzk1Dy-E1pfQWM4DhhkKGltHpMAHn0RmNGwfSLkErLK6vqlRrhm9FRRgHoZybGAI2QYGBk4GXlSivUECPVDe0cVLQb4AGo4AEYdWgnomJil0WcGS+zgOyOJxkfwBOxhcC6AlogiAA) - [StackBlitz](https://stackblitz.com/fork/react-ts) - [CodeSandbox](https://ts.react.new/)