This is my own personal and preferred API hook made myself for React. This is mainly made to prevent redundancy and version obsolescence across my own projects.
To prevent writing the same code across all my projects as well as keeping the scripts up to date.