mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-12 22:46:30 +08:00
- The JavaScript template uses a function declaration to define the component, the TypeScript template and a page of the documentation used arrow functions. Changed it to use function declarations for consistency and readability.
cra-template-typescript
This is the official TypeScript template for Create React App.
To use this template, add --template typescript when creating a new app.
For example:
npx create-react-app my-app --template typescript
# or
yarn create react-app my-app --template typescript
For more information, please refer to:
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.