Check out example codes for "typescript with babel". It will help you in understanding the concepts better.

Code Example 1

npm install --save-dev @babel/preset-typescript

Code Example 2

npm install --save-dev typescript @babel/core @babel/cli @babel/plugin-proposal-class-properties @babel/preset-env @babel/preset-typescript

Learn ReactJs, React Native from akashmittal.com