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.



Below are the advantages of the SPFx webpart:

  1. Capability to create Responsive UI using Office UI Fabric
  2. SharePoint Framework is available as a “No JavaScript Framework”,” React”, “Knockout” thus, it provides a flexibility to choose the JavaScript framework to deploy the solution.
  3. With the SPFx solution, the user can experience responsive property pane, in which when they can modify the configuration or settings and check its effect without refreshing the entire page.
  4. Developers can use Typescript to build their solution and write a code very similar to C# language in the SPFx. Also, TypeScript is an object oriented and typed code language.
  5. It provides Structured Client-Side Customisation
  6. The SPFx model supports all the browsers and devices such as desktop, mobile and tablets.
  7. The SPFx solution is future proofed i.e. it will not be deprecated within few years as the future development is based on the SPFx model.

Refer this link for Prons and Cons of the SPFx.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.