Check out example codes for "create new react app using typescript". It will help you in understanding the concepts better.

Code Example 1

create-react-app app-name --scripts-version=react-scripts-ts

Learn ReactJs, React Native from akashmittal.com