This project was bootstrapped with Create React App.
This is a basic project to learn typing fast as possible
The react useState property of not updating value immediately. The above mentioned issue causes chaos to an eventListner.
=> It also exhibits the solution of the issues