How to migrating ReactJS to ReactTS [closed]

I have a ReactJS project in an advance stage and I want to migrate it to ReactTS (Typescript).

How can I accomplish that?

I try adding a ts-config file and when I use tsx file they are not recognize and I don’t know what I’m missing.