Clone this repo and then install it with this command.
npm i
Follow steps of creating a Cognito APIs in this article
https://ehsangazar.com/developing-authentication-with-cognito-and-javascript-apps-bbf3686612e7
Then you can configure the Configs/Cognito.config.js
and for running the app use
npm run dev
As simple as that you have developed login/register/forget/reset/logout scnearios with React,Typescript