This article shows how to use Approval Workflows in a List in SharePoint.
Look at the following points.
Getting Started with SharePoint Framework Development using TypeScript, PnP JS, and React JS