change js to ts react code example
Example: converting react to ts
npm install --save typescript @types/node @types/react @types/react-dom @types/jest
npm install --save typescript @types/node @types/react @types/react-dom @types/jest