Note: this feature is available with Metronic 7.1.1 and higher.
Note: this feature is available with Metronic 7.1.1 and higher.
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
Next, rename any file to be a TypeScript file (e.g. src/index.js to src/index.tsx) and restart your development server!
For more detailed information, visit the official Create React App documentation website.