Files
create-react-app/packages/cra-template-typescript
Lewis Llobera 687c4ebf21 Change arrow functions to function declarations (#8412)
- 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.
2020-02-03 15:28:39 +01:00
..
2020-01-30 21:05:43 -07:00
2019-10-24 15:17:41 -07:00

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: