Home Metronic Hire Us Buy Now
The World’s #1 Bootstrap 4 & 5 HTML, Angular 11, React, VueJS & Laravel
Admin Dashboard Theme

## Adding TypeScript

Note: this feature is available with Metronic 7.1.1 and higher.

### Installation:

1. To add TypeScript to a Metronic React App project, first install it:

                           npm install --save typescript @types/node @types/react @types/react-dom @types/jest
       # or
       yarn add typescript @types/node @types/react @types/react-dom @types/jest

2. Next, rename any file to be a TypeScript file (e.g. src/index.js to src/index.tsx) and restart your development server!

3. Type errors will show up in the same console as the build one. You'll have to fix these type errors before you continue development or build your project. For advanced configuration, see here.

For more detailed information, visit the official Create React App documentation website.