I would like to know what are the advantages of creating a SPFx web-part instead of just hosting a custom html page with react on SharePoint 2019 on-premises.
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
Below are the advantages of the SPFx webpart:
Refer this link for Prons and Cons of the SPFx.