This module will help you deploy the FBT API on top of a vanilla React App that was installed using "create-react-app" and typescript.
For a full setup:
npx create-react-app my-fbt-app --template typescript
cd my-fbt-app
yarn add fbt-cra-typescript-installer
yarn run fbt-cra-ts-install
yarn all-fbts
yarn start
See if there's anything interesting in the log file fbt-cra-typescript-installer.log (only created if the script finds something unexpected).
https://facebook.github.io/fbt
https://dev.to/retyui/how-to-add-support-typescript-for-fbt-an-internationalization-framework-3lo0
https://medium.com/@frenchyooy/configuring-fbt-api-with-typescript-and-react-create-app-492ee72f44bb
For FBT Parameters and Interpolation, use <FbtParam> or FbtParam( ... );
For FBT Name, use <FbtName> or FbtName( ... );
For FBT Same Parameter, use <FbtSameParam> or FbtSameParam( ... );
For FBT Enumerations, use <FbtEnum> or FbtEnum( ... );