Check out example codes for "how to install react spring with typescript". It will help you in understanding the concepts better.

Code Example 1

npm install [email protected] -E

# yarn
yarn add [email protected] -E

Learn ReactJs, React Native from akashmittal.com